Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Limit

Status
Not open for further replies.

jass1220

Programmer
May 20, 2003
88
AE
Public ArrayNames(0 To 3) As String


i don't want to limit my array with this (0 To 3).. coz i don't know how many items will be in it .. so what can i do .. ?
 
Public ArrayNames() As String


.....later on:

Redim (Preserve) ArrayNames(your_required_size)


Check out redim and preserve.....

Greetings,
Rick
 
What didn't you get?
Did you check MSDN for redim and preserve?

Greetings,
Rick
 
YOu could try using a collection - again you'll find info about that in msdn as Rick advises.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top