dim obj as Variant
dim ti as Introspection.TypeInfo = Introspection.GetType(obj)
dim mi as Introspection.MethodInfo = ti.GetMethods
Error:
Type mismatch error.
Expected class
Introspection.MethodInfo, but got class
Introspection.MethodInfo
dim mi as Introspection.MethodInfo = ti.GetMethods
I know the answer now, but can you see the mistake?
That is the problem, yes, but the error message gives no clue that it’s expecting an Array of specifc type. It just says “Expecting class X but got class X” which is not very helpful!