...

View Full Version : Problem with Quotes :(



idobson
05-27-2005, 12:15 AM
I have a little javascript that works fine if I put the value in the script like so

RemoveLookup("AV001");
RemoveLookup("AV002");
RemoveLookup("AV003");

However there could be 100 of these so I was going to do it with a for next loop like so..


for (x=1; x<=100; x++)
{
var item='AV'+pad(x,3); // pad it out to 00? etc..
RemoveLookup(item);
}

Problem is that I need a double quote around the item variable and I don't know how to do that, Please help :)

idobson
05-27-2005, 12:22 AM
Never Mind, I got it :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum