Passing TStrings without creating them.
Posted on 2001-08-20
This is, I know, a silly question, but I'm sure I've seen it done.
If you have this procedure, (the procedure itself is irrelevant to this question).....
procedure DoStuff(sValues: TStrings);
.....rather than create a TString and add the lines so that you can send it to the procedure, I'm sure that I've seen something - not this - but like this....
DoStuff(['value1', 'value2', 'value3']);
(I know that that's a set, but it's something similar to that.)
Does anyone know what I mean?