MethodInfo.Invoke
From Xojo Documentation
Method
MethodInfo.Invoke(base as Object [,params() as Variant])
Supported for all project types and targets.
Supported for all project types and targets.
Invokes the method, given its base object and an instance of the class that created it. You can use Nil as the base object if calling a shared method. Pass an array of variants for the method's parameter values. You will get an OutOfBoundsException if the number of parameters does not match or an IllegalCastException if the types do not match.
Method
MethodInfo.Invoke(base as Object [,params() as Variant]) As Variant
Supported for all project types and targets.
Supported for all project types and targets.
Invokes the method, given its info object and an instance of the class that created it. You can use Nil as the base object if calling a shared method. Pass an array of variants for the method's parameter values. You will get an OutOfBoundsException if the number of parameters does not match or an IllegalCastException if the types do not match.