G'Day,

I would like to use the good old format function:

function Format(const Format: string; const Args: array of const): string;

Easy when you have say Format('%s blah %s', [SomeVar1, SomeVar2]);

However I have a situation where the format string is dynamic and so is the number of paramaters for the Args paramater. ie In one call I may have a format string with 12 %s and another 2 for example. Assuming that all the arguments that would be passed for Args are strings is there any way to build the args paramater dynamically. I tried a dynamic array but that did not seem to do the trick. Has anyone got any pointers or can someone tell me how to do this easily another way perhaps?

TIA

-- Donovan
----------------------------------------------------------------------
Donovan J. Edye [
www.edye.wattle.id.au]
Namadgi Systems [
www.namsys.com.au]
Voice: +61 2 6285-3460
Fax: +61 2 6285-3459
TVisualBasic = Class(None);
Heard just before the 'Big Bang': "...Uh Oh...."
----------------------------------------------------------------------
GXExplorer [
http://www.gxexplorer.org] Freeware Windows Explorer
replacement. Also includes freeware delphi windows explorer components.
----------------------------------------------------------------------

Reply via email to