|
-
Jul 14th, 2000, 02:32 PM
#1
Thread Starter
Addicted Member
I have this type of class structure in my program:
Class1 - strings, longs, and doubles.
Class2 - collection of class1 and a few strings
Now I have a form that takes in or modifies values of type class1 by loading or taking the data in from yet another form, and adds them to a variable of type class2.
I'd like to pass a reference of class1, by using a class2 reference.
I thought it'd be something as simple as adding this property get to my class2...
Code:
Public property get class1(ByVal seqnum As Integer) As class1type
class1 = class2Obj.class1Col.Item(seqnum)
End Function
but this results in a dynamic variable/no with block declared error.
Obviously, this is getting a little complicated, but hopefully you can at least see what I'm trying to do and give me some advice.
Also, is there anything special I have to write into my class to allow set class=class statements to work?
Thanks.
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
|