a simple loop, setting array to a blank string (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


seth -> a simple loop, setting array to a blank string (2/11/2005 12:32:22)

Hi how can i create an array of empty strings, say for 1 - 50 items

this is what i've started doing, but it doesn't seem to work

Do Until varr > 50
arrValue(varr) = ""
Next




rdouglass -> RE: a simple loop, setting array to a blank string (2/11/2005 13:18:32)

How about:

DIM myArray(49)

(Remeber arrays are zero-based.) That help?




dpf -> RE: a simple loop, setting array to a blank string (2/11/2005 13:59:22)

quote:

DIM myArray(49)
I was wondering about that- thanks. I know that in javascript you can declare an array and its length and it established an empty array..now I know how in asp




rdouglass -> RE: a simple loop, setting array to a blank string (2/11/2005 14:02:05)

That's a 1-dimentional array; 2 dimentions would be DIM myArray(49,49), etc....




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.298828E-02