LitDev.LDCall.Function C# (CSharp) Method

Function() public static method

Call a Small Basic Sub as a function with one input argument. The input arguments(s) will be copied to an array called "args". The result should be put in a variable (may be an array) called "return". The variable "args" should be set to "" at the start of the program. The input parameter(s) are unchanged, while "args" and "return" are set to "" on return.
public static Function ( Primitive funcName, Primitive arg1 ) : Primitive
funcName Primitive The Small Basic Sub name.
arg1 Primitive An input value (may be an array).
return Primitive
        public static Primitive Function(Primitive funcName, Primitive arg1)
        {
            Primitive args = "";
            args[1] = arg1;
            return Func(funcName, args);
        }