Add values to an array

hbrems

has no clue...
Local time
Today, 05:23
Joined
Nov 2, 2006
Messages
181
Dear all,

I have an array:

Code:
varray = array("john", "paul")

How can I add values to my array with code in order to get something like

Code:
vresult = varray + louis
vresult = array("john", "paul", "louis")

Kind regards,
Hans B.
 
once an array has been dimensioned you can increate the number of elements use

redim preserve yourArrayName(Ubound(YourArrayName)+1)
 

Users who are viewing this thread

Back
Top Bottom