S
Simon
Hi everybody..
I'm having a big problem and I think it has something to do with a maximum
of variables that can be used..
I need to set 16495 variables..
With a smaller amount the script works, but with this number the script
doesnt work anymore..
It goes like this:
var tmp1 = '002RtdOosterhof.jpg';
if (fileName == tmp1) {var stop = 'JA';
}
var tmp2 = '003RtdNoordmolen.jpg';
if (fileName == tmp2) {var stop = 'JA';
}
var tmp3 = '004RotterdamZuidplein.TIF';
if (fileName == tmp3) {var stop = 'JA';
}
var tmp4 = '004RotterdamZuidplein.jpg';
if (fileName == tmp4) {var stop = 'JA';
.......etc............ all the way to var tmp16495
(The reason why there are so many is beacuse it runs through a table that
has all the uploads registered, and i need to compare them with the selected
file before uploading it, so that an existing file will not be overwritten.)
Any ideas?
I'm having a big problem and I think it has something to do with a maximum
of variables that can be used..
I need to set 16495 variables..
With a smaller amount the script works, but with this number the script
doesnt work anymore..
It goes like this:
var tmp1 = '002RtdOosterhof.jpg';
if (fileName == tmp1) {var stop = 'JA';
}
var tmp2 = '003RtdNoordmolen.jpg';
if (fileName == tmp2) {var stop = 'JA';
}
var tmp3 = '004RotterdamZuidplein.TIF';
if (fileName == tmp3) {var stop = 'JA';
}
var tmp4 = '004RotterdamZuidplein.jpg';
if (fileName == tmp4) {var stop = 'JA';
.......etc............ all the way to var tmp16495
(The reason why there are so many is beacuse it runs through a table that
has all the uploads registered, and i need to compare them with the selected
file before uploading it, so that an existing file will not be overwritten.)
Any ideas?