[fpc-pascal]Variable argument counts...
Gene Buckle
geneb at deltasoft.com
Sun Sep 19 22:30:01 CEST 2004
> procedure QMCall(subrname: pchar; argc: shortint; rest: array of
> const); cdecl; external;
>
> You can then call it using
>
> QMCall('test',1,['para1','para2',5,null]);
>
> (I know you said it only needed strings, but it's just to show that you
> can pass anything that way, just like with "...").
>
>
Jonas, thanks for the quick response! Do you know if this same trick will
work with Delphi 7?
Thanks again!
g.
--
"I'm not crazy, I'm plausibly off-nominal!"
Proud owner of 80-0007
http://www.f15sim.com - The only one of its kind.
More information about the fpc-pascal
mailing list