Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

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
ASKER CERTIFIED SOLUTION
Avatar of Rahul Gupta
Rahul Gupta
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RIAS

ASKER

Fantastic mate!!!!Cheers
Avatar of Mike Tomlinson
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