Hi all...
I have a screen field that accepts any char (Can't change that portion)
and saves into an Int field.
I check with IsNumeric(fieldname) to make sure it only has numeric data. Then I realised that a number like 3214123456 won't fit into the Int field as the largest size is 2147483647.
My question is: Is there a 'nice way' to check the size of the number without hardcoding the int number (ie I thought of doing
if fieldname - 2147483647 > 0 then errmsg = "number too long"
Thanks
Beth
I have a screen field that accepts any char (Can't change that portion)
and saves into an Int field.
I check with IsNumeric(fieldname) to make sure it only has numeric data. Then I realised that a number like 3214123456 won't fit into the Int field as the largest size is 2147483647.
My question is: Is there a 'nice way' to check the size of the number without hardcoding the int number (ie I thought of doing
if fieldname - 2147483647 > 0 then errmsg = "number too long"
Thanks
Beth