pralash
18th December 2018, 10:36
Hi,

I've used a multi byte string table field in my script (domain tcrefa)... It contains the combination of numbers and letters... I need to perform a particular task if the multi byte string field has only numbers.... So I have used "isdigit" function... But it's not checked properly if the multibyte string field containing numbers... Since is there any other way to check the multibyte string has only numbers or not...

Can anybody help me regarding this... Thanks in advance...

Regards,
Pralash

BaanInOhio
18th December 2018, 20:39
Use lval from the string variable to a temporary variable then check the variable if <> 0 for all numbers and zero otherwise. Can use val if the number in the string isn't a whole number.

pralash
19th December 2018, 10:26
Thanks for your guidance... But I can do that some another way using strip$ function with isdigit together...

Regards,
Pralash