What wil be the logics of this two? Shown in the picture..
My Cspro version is 7.7.3
Mobile Verification
-
- Posts: 36
- Joined: August 19th, 2023, 6:06 am
Mobile Verification
- Attachments
-
- Mb2.jpg (120.5 KiB) Viewed 4163 times
-
- Mb.jpg (121.72 KiB) Viewed 4163 times
-
- Posts: 49
- Joined: October 15th, 2020, 3:40 am
Re: Mobile Verification
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;
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;
-
- Posts: 36
- Joined: August 19th, 2023, 6:06 am
Re: Mobile Verification
thank you very much it worked!!