Used in scenarios like the one below
Function arrVar
I tried, but had no luck.
That should be the idea, but I don't know how to modify the code.
The following code throws an "invalid type cast" error at runtime.
Function arrVar
function` [`_A1] [`_A2] [`_A3] [`_A4] [`_A5] [`_A6]
CsScript x.AddCode("" 0x10000)
ARRAY(VARIANT) args.create
sel getopt(nargs)
,case 1 args[]=_A1
,case 2 args[]=_A1; args[]=_A2
,case 3 args[]=_A1; args[]=_A2; args[]=_A3
,case 4 args[]=_A1; args[]=_A2; args[]=_A3; args[]=_A4
,case 5 args[]=_A1; args[]=_A2; args[]=_A3; args[]=_A4; args[]=_A5
,case 6 args[]=_A1; args[]=_A2; args[]=_A3; args[]=_A4; args[]=_A5; args[]=_A6
str command=
;cd
ret x.Call("test.Call2" command args)
#ret
public class test
{
,public static string Call2(string command, params object[] args)
,{
,,Console.WriteLine(command);
,,//
,}
}Quote:SAFEARRAY like in CsFunc
I tried, but had no luck.
Quote: VARIANT* (then it's &_A1)
That should be the idea, but I don't know how to modify the code.
The following code throws an "invalid type cast" error at runtime.
