zzconsumer
asked on
Something like a Pointer
Hello,
I need something like a pointer to tell a class module where to get its data from. Is there such a possibility in Visual Basic?
Gretting
zz
I need something like a pointer to tell a class module where to get its data from. Is there such a possibility in Visual Basic?
Gretting
zz
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Can i also tell the class which Property of a known class to allocate? The thing is that I made a class that returns arrays using different Properties as Variant.
ASKER
Well, I had not time to check it out, but Ark's solution looks like it comes closest to what I need.
Thanks.
zz
Thanks.
zz
in your class module you make a function like
public function myFunction(ByRef myData as string)
msgbox myData
myData = "Newstring"
end function
now you just pass the reference like
Dim str as string
str = "test"
call objectreference.myFunction
msgbox str
Regards,
CJ