array starting with var[100] ?

Javascript coding ..

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 32
Joined: Tue Jul 30, 2002 11:27 pm

array starting with var[100] ?

Postby Miss_Marple » Tue Sep 23, 2003 1:01 pm

I want to store filenames in an array. Those filenames are beginning with numbers, f.e. 100 to 142, 200 to 235 and so on. I want to refer to those filenames with the variable's index. So the numbers should become the index. If I have a list like this:
var[100] = "100file.jpg";
var[213] = "213file.jpg";
can I define an array with missing indices?



User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Re: array starting with var[100] ?

Postby swirlee » Tue Sep 23, 2003 3:16 pm

<edit>Erp. Bad advice. Ignore me.</edit>
Last edited by swirlee on Thu Sep 25, 2003 2:27 pm, edited 1 time in total.

User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Postby ruturajv » Thu Sep 25, 2003 3:52 am

VB Script won't allow you that :)

Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 5 guests