isdigit function in peoplecode
isdigit function peoplecode
Use the IsDigits function to determine if String contains only digit (numeric) characters. Numeric characters do not include sign indicators and comma and period decimal points. If you want to check for numbers as well as sign indicators, use the IsNumber function.
Syntax : IsDigits(String)
String : Specify the string you want to search.
Example
&TAX_ID = COMPANY_AFF.TAX_ID;
&len = Len(&TAX_ID);
rem WinMessage(&TAX_ID | “,” | &len, 0);
If IsDigits(&TAX_ID) = True And
&len = 13 Then
Else
Error “Please input digit number = 13”;
End-If;