RIAS
asked on
How to declare arraylist in vb6.0
Hi,
Need to declare arraylist in vb6.0.
I have text file in which I find certain strings and want to store it in array.I do not know the number of string that will be found in the file.
Regards
Need to declare arraylist in vb6.0.
I have text file in which I find certain strings and want to store it in array.I do not know the number of string that will be found in the file.
Regards
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Use a Collection instead as it will grow dynamically to accommodate your new entries...
Dim col As New Collection
...
' for each thing you want to add:
col.Add something
' when you want to iterate over them:
Dim itm As Variant
For Each itm In col
Debug.Print itm
Next
Dim col As New Collection
...
' for each thing you want to add:
col.Add something
' when you want to iterate over them:
Dim itm As Variant
For Each itm In col
Debug.Print itm
Next
ASKER