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!

infinent array 2

Status
Not open for further replies.

fugigoose

Programmer
Jun 20, 2001
241
US
Is there a way in VB to define an array that has no "range". That is, you can keep adding stuff to it until the client machine runs out of memory. I think the term used to describe such an array is "zero defined" I'm making a money management program like "Microsoft Money" and i dont want a limit to the number of transactions that can be made (which will eventually end up in the 1000's) Thanx.
 
Dim strTransaction() As String

Add a new item to the array...

Redim Preserve strTransaction(x)
strTransaction(x) = "$334.00"
x = x + 1
 
Wouldn't a Collection or a generally faster Dictionary Object be more appropriate in this case?

_________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top