[thelist] testing for empty in javascript or vbscript

Shashank Tripathi sub at shanx.com
Mon Jul 15 19:10:43 CDT 2002


Hi,


    | >       zip = "zip" + i;
    |
    | on this line you are making the variable called 'zip'
    | hold the string "zip" + i. which, depending what value
    | 'i' has, would be something like "zip1" or "zip2". which


No, this would not make the variable zip1 or zip2. It will add the value
of "i" to the value of zip. In order to get zip1 or zip2, you would have
to use eval() function. e.g.,

    eval("zip" + i);


It would be useful to know again what the original question was? Sorry I
missed the thread.

Shanx





More information about the thelist mailing list