Hello,
I have to call a delphi method with a variant parameters.
Delphi method declaration:
function MyFunction(const FieldList: string; const FieldValues: variant): boolean
Use in Scripter:
if MyObject.MyFunction(FieldList, [Value1, Value2]) then
begin
DoSomeThing;
end;
This gives me the exception: 'invalid variant type conversion' in class EVariantTypeCastError.
Please can someone give me a hint where the problem is?