Question for passing object as function parameter
Help me!
I wonder how can I passing an object as function/sub parameter
since the procedure call always think my object as its default property/method
example:
Dim objectRef as MyObject
set objectRef = new MyObject
showObjectInfo(objectRef) 'Here it thinks objectRef as its default property
sub showObjectInfo(oR as MyObject)
oR.x = 1
oR.y = 2
end sub
help me and send me mail([email protected])
thanx a lot
Re: Question for passing object as function parameter
Pass it in as Variant not MyObject.. It will work then.
--
Chizl
[email protected]
http://www.chizl.com/