Click to See Complete Forum and Search --> : Question for passing object as function parameter


December 7th, 1999, 07:22 PM
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(topxeq@cattsoft.com)
thanx a lot

Chizl
December 7th, 1999, 11:09 PM
Pass it in as Variant not MyObject.. It will work then.


--
Chizl
chizl@NOSPAM.karland.com
http://www.chizl.com/