on 11-19-2007 8:11 AM
Hi All,
Quick question! is there a way to test for Numeric value in the Graphical mapping?
Thank you in Advance,
Danny
there is not standard function available. But you can write a small UDF with a logic of parseInt or parsedouble in it to check for a numeric value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
nope....but u can check if a value is alphanum by some Proprietary code in UDF
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.