this is not a problem, but a request for information.
I spent some time chasing down a problem, and it raised a 'Huh?' question.
I had a function which took an object as an argument.
I called Foo with an object, and everything was fine; Foo returned a string:
Code: Select all
Function Foo(objFiddle as Object) as String
x=Foo(objMyObject)
Code: Select all
Sub Foo(objFiddle as Object)
Foo(objmyObject)
Code: Select all
Sub Foo(vFiddle as Variant)
Foo(objmyObject)
Remove the parens, and it works as expected.
Can anyone give any insight into what just happened here?
TIA
Zk.