why does this not work

type = Introspection.GetType(self)
methods = type.GetMethods
for i = 0 to Ubound(methods)
if methods(i).Name.lowercase = mname.Lowercase then
found=true
methods(i).Invoke (window1,params) *** type mismatch exception here ***
exit for i
end
next

I have been fighting this all afternoon. I’ve also been getting a nilobectexception on that line as well if I remove the params option.

Anyone have any ideas off the top of their head?

Thanks,

Phil

Is params an array of Variant?

yes, param is a variant array

Phil

Ok, some more information on this… the method its calling is declared like this:

do_moveCmd(paramarray args as string) as string.

When I take change that to just “args as string” or no parameters at all and adjust the invoke command appropriately, it works. So it does not like parameter arrays.

Phil