[fpc-pascal]Variable argument counts...
Jonas Maebe
jonas at zeus.ugent.be
Sun Sep 19 22:24:41 CEST 2004
On 19 sep 2004, at 22:30, Gene Buckle wrote:
>> 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?
I have no idea. I've never programmed in Delphi in my entire life.
Jonas
More information about the fpc-pascal
mailing list