Hi all,
I'm trying to use the Format function. For it's second parameter it takes a variant open array (array of const).
I have the array already set up and want to pass it to the Format function, but I keep running into a wall with invalid types and the like.
Some code:
I've mucked around setting up a variant array but still can't get it to work.
Help anyone?
I'm trying to use the Format function. For it's second parameter it takes a variant open array (array of const).
I have the array already set up and want to pass it to the Format function, but I keep running into a wall with invalid types and the like.
Some code:
Code:
var
StrArray : array[1..10] of String;
begin
{ Load StrArray with values here }
Format('%s, %d', StrArray);
end;
I've mucked around setting up a variant array but still can't get it to work.
Help anyone?