SetLength (Invalid Argument)
Hello,
I'm trying to make this simple script work:
Looking into your code (v1.6, fs_isysrtti.pas, line 197) i read:
Is function/procedure/method overloading supported? Can you help and/or fix the problem?
Thank you in advance.
I'm trying to make this simple script work:
var
 s: string;
begin
 s := 'hello world';
 SetLength(s, 5); Â
end.
but everytime the scripter gets to the SetLength procedure it raises an Invalid Argument exception.Looking into your code (v1.6, fs_isysrtti.pas, line 197) i read:
AddMethod('procedure SetLength(var S: Variant; L: Integer)', CallMethod5, FCatStr);
so I suppose when the S (variant) is evaluated it appears to represent a variable of the wrong type. Exception comes up at line 571 of the Variants.pas file of Delphi 7 (update 1).Is function/procedure/method overloading supported? Can you help and/or fix the problem?
Thank you in advance.
Comments