|
-
August 7th, 2000, 09:19 AM
#1
Arrays
I have declared a type which is let say MY Type
and I want to populate an array with a record of My type every time the event Private Sub cmdAddLife_Click() is generated.
How can I do??
-
August 7th, 2000, 09:25 AM
#2
Re: Arrays
dim mytypes() as MYTYPE
dim count as integer
..cmdAdd
redim preserve mytypes(count)
mytypes(count).value = value
mytypes(count).value2 = value2
count = count+1
this is PCODE!
-
August 7th, 2000, 01:34 PM
#3
Re: Arrays
Thank you for your answer, it was very helpful. Now I would like to be able to display the values of each records of the array in some fields in a vb form by using a Private Sub cmdSeePrevious_Click() event.
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
|