XojoScript saying 'Undefined identifier' For Method Using Variant Parameter

In my XojoScript context, I have a method which works fine if the parameter at the end accepts string but not variant.

So it’s a method implemented like this:

Sub Call(method as string, paramarray params as varient)

End Sub


Why not use “Auto” instead of “Variant” ?

You can’t use either. They’re considered objects, and you can’t pass objects across the script/context boundary.

Ah right. Well, I was using it to pass in non-object data types. So what do you recommend as an alternative? For now I am going to use string and convert everything to string to pass it in to the context. Thanks

you could pass through json strings. That would at least allow Boolean, string, number and nil types.

Thanks for the advice.