Sorry for bothering everone again, but I have two more question. I was wondering how to take a number and start from the far right and read one number or decimal spot at a time. I am wanting to take a reading from an outside source then take each digit, locate it in a case statement then write out the appropriate jpg. I am able to do this in vb by creating a while loop.
while i<5
i = i + 1
singledigit = right$(number,1)
call sub casestatement()
wend
I am wandering how to do basically the same thing in javascript. I can't seem to find out how to pick apart a string. I also do not know how to format a number in javascript. In vb it is "Label1.Caption = Format(numbervar, "######.00"". If someone could help me with this I would deeply appreciate it. Like I mentioned the last time, I am new to javascript and I can't seem to find this info in the books that I am referencing.
Thank you,
jscorpion
while i<5
i = i + 1
singledigit = right$(number,1)
call sub casestatement()
wend
I am wandering how to do basically the same thing in javascript. I can't seem to find out how to pick apart a string. I also do not know how to format a number in javascript. In vb it is "Label1.Caption = Format(numbervar, "######.00"". If someone could help me with this I would deeply appreciate it. Like I mentioned the last time, I am new to javascript and I can't seem to find this info in the books that I am referencing.
Thank you,
jscorpion