Mobile Verification

Discussions about CSEntry
Post Reply
Romij Chowdhury
Posts: 33
Joined: August 19th, 2023, 6:06 am

Mobile Verification

Post by Romij Chowdhury »

What wil be the logics of this two? Shown in the picture..
My Cspro version is 7.7.3
Attachments
Mb2.jpg
Mb2.jpg (120.5 KiB) Viewed 4065 times
Mb.jpg
Mb.jpg (121.72 KiB) Viewed 4065 times
Arjun Brti
Posts: 49
Joined: October 15th, 2020, 3:40 am

Re: Mobile Verification

Post 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;
Romij Chowdhury
Posts: 33
Joined: August 19th, 2023, 6:06 am

Re: Mobile Verification

Post by Romij Chowdhury »

thank you very much it worked!!
Post Reply