|
-
Mar 3rd, 2004, 03:43 PM
#1
Thread Starter
New Member
Data Structure Problems
Code im using is
Public Structure pupil
Dim name As String
Dim age As Int16
Dim id As Int16
Dim pupilClass As String
End Structure
Public Structure pupilList
Dim list() As pupil
Dim count
End Structure
Dim ListData As New pupilList()
then to try and access the pupil name im using
MsgBox(ListData.list(ListData.count).age)
it give me a error saying that the last line is not set to a instance of the object?
any help would be great on how i can update/desplay the name,age etc , cheers!
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
|