Dim loParameterClass(1) As Object loParameterClass(0) = oApp loParameterClass(1) = Meand use this object later on down the code, it will work. But, if I pass this object to a method like this:
' Execute the method If Not ExecuteMethodFromClass(oApp.cStartupDirectory + "Robot.exe", "Robot", _ loRow("Class"), loRow("Method"), loParameterClass) Then Return False End Ifand, the method is declared like this:
Public Function ExecuteMethodFromClass(ByVal tcAssembly As String, _ ByVal tcNamespace As String, ByVal tcClass As String, _ ByVal tcMethod As String, ByVal toParameter As Object) As BooleanIn that method, I cannot make use of the toParameter object. It seems I have a problem in the declaration. So, basically, what is the proper way of passing such an object to the method and have it recognized as is inside the method?