[Stackoverflow] [Progress OpenEdge ABL] how-do-i-validate-phone-number-in-Openedge /Progress 4gl-programming

Status
Not open for further replies.
T

Tony Stark

Guest
Code:
define var mobnum as  INT64 label "Mobile No:" format "9999999999" .
update mobnum.
if mobnum < 10 or mobnum > 0 then 
do:
  display "enter only 10 digits".
  update mobnum.
end.
else if mobnum = 10 then
do:
  display "Correct number".
end.

In this code, I want to validate mobile number. if i correctly enter 10 digit it wants to display "Correct number" but when enter 10 digits it only display "Enter only 10 digits"..

Continue reading...
 
Status
Not open for further replies.
Top