Page 1 of 1

Mobile Verification

Posted: October 9th, 2023, 3:48 am
by Romij Chowdhury
What wil be the logics of this two? Shown in the picture..
My Cspro version is 7.7.3

Re: Mobile Verification

Posted: October 9th, 2023, 11:45 am
by Arjun Brti
Hi Romij

If your a09 is a string variable you can used the following code:

1. If you want to check the 11 digits of phone number:
if length(strip($))< 11 then
errmsg("Mobile number must be 11 digits !!!"); reenter; endif;

2. If you want to check the number only:
if not $ in "0":"9" then
errmsg("Used number only."); reenter; endif;

Re: Mobile Verification

Posted: October 10th, 2023, 2:18 am
by Romij Chowdhury
thank you very much it worked!!