coox
Jul 8th, 2003, 10:35 AM
I have the following line of code, which results in, for example, 0170.00 being entered in the text field:
frmMain.txtMinimum.value = arrCompanies[intCheckLoop].slice(48,52) + "." + arrCompanies[intCheckLoop].slice(52,54)
What would be the best way, using Javascript, to get any leading zeros removed? I'm used to VB where I'd just use:
frmMain.txtMinimum.value = Value(arrCompanies[intCheckLoop].slice(48,52)) + "." + arrCompanies[intCheckLoop].slice(52,54)
Cheers!
frmMain.txtMinimum.value = arrCompanies[intCheckLoop].slice(48,52) + "." + arrCompanies[intCheckLoop].slice(52,54)
What would be the best way, using Javascript, to get any leading zeros removed? I'm used to VB where I'd just use:
frmMain.txtMinimum.value = Value(arrCompanies[intCheckLoop].slice(48,52)) + "." + arrCompanies[intCheckLoop].slice(52,54)
Cheers!