open-array-parameters Questions

3

Solved

I want to pass the formatting arguments Args into the Format function. I found some examples of that, but I can't find out how to assign string constant in the TVarRec member. The following code fa...
Retroversion asked 19/5, 2011 at 12:37

1

Solved

I'm using Delphi 2007 (Pre generics) and I've defined many functions who can be used for all arrays of TObject's descendants, example: function IndexOf(AArray : array of TObject; AItem : TObject) ...
Bouffe asked 18/5, 2018 at 15:4

1

When compiled under Delphi 7 or Delphi XE, the code below complains [DCC Error] Project1.dpr(25): E2010 Incompatible types: 'array of Char' and 'TAChar' According to Rudy's article, it should b...
Culp asked 30/12, 2015 at 12:17

5

Solved

(I already asked this at CodeReview where it got closed as off-topic. Hopefully it's on-topic here.) I have a static arrays of a derived type (like LabelsA: array[0..3] of TLabel; in the following...
Enswathe asked 22/7, 2015 at 7:59

1

Solved

Using Delphi XE-2 (all updates applied). I would expect the following code to generate compilation errors on the DoSomething and DoInteger calls, but it doesn't. program OpenArrayQuestion; {$APP...
Pepsin asked 21/11, 2012 at 9:43

3

Solved

I was looking at Delphi: array of Char and TCharArray "Incompatible Types" and started experimenting. What I discovered is rather interesting. procedure Clear(AArray: array of Integer); ...
Cranky asked 23/9, 2010 at 19:5
1

© 2022 - 2024 — McMap. All rights reserved.