Mobile Verification

Discussions about CSEntry
Post Reply
Romij Chowdhury
Posts: 38
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
You do not have the required permissions to view the files attached to this post.
Arjun Brti
Posts: 63
Joined: October 15th, 2020, 3:40 am
Location: Nepal

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: 38
Joined: August 19th, 2023, 6:06 am

Re: Mobile Verification

Post by Romij Chowdhury »

thank you very much it worked!!
Post Reply