Test for Numeric Value
Hi All,
Quick question! is there a way to test for Numeric value in the Graphical mapping?
Thank you in Advance,
Danny
Former Member replied
Hi
There is no way to check for numeric characters in Graphical Mapping.You can use this UDF for the same.Also you need not import any class for this.
function IsNumeric(strString)
// check for valid numeric strings
{
var strValidChars = "0123456789.-";
var strChar;
var blnResult = true;
if (strString.length == 0) return false;
// test strString consists of valid characters listed above
for (i = 0; i < strString.length && blnResult == true; i++)
{
strChar = strString.charAt(i);
if (strValidChars.indexOf(strChar) == -1)
{
blnResult = false;
}
}
return blnResult;
}
Thanks