Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create validation to accept input of numbers only in Simphony SIM / ISL

Status
Not open for further replies.

Imaduddin

Technical User
Sep 29, 2019
2
QA
Goal : To accept 13 digit numeric value from input

Challenge: A13 accepts alphabets whereas the requirement is to restrict alphabets.

Plan: To create a validation to restrict the alphabets to be entered in the input.


Code:

event inq : 2

var barcode : A13

input barcode, "Enter a number and press [ENTER]"


if len(barcode) <> 13

errormessage "Error in Barcode"
exitcontinue

endif

//if the input of barcode contains alphabets exit
infomessage barcode

endevent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top