|
-
December 7th, 1999, 08:22 PM
#1
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
-
December 8th, 1999, 12:09 AM
#2
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/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|