Subject: | |
From: | |
Reply To: | |
Date: | Wed, 26 Sep 2001 14:27:30 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
SETVAR _CN ' '
WHILE NOT NUMERIC ("!_CN") OR NOT LEN ("!_CN") = 10
INPUT _CN;PROMPT="Paste or type 10-digit Customer Number here:";READCNT=10
if not numeric ( "!_CN" ) or not len ( "!_CN" ) = 10
echo Wrongo try again
ENDIF
endif
> -----Original Message-----
> From: Michael Hone [mailto:[log in to unmask]]
> Sent: Wednesday, September 26, 2001 2:09 PM
> To: [log in to unmask]
> Subject: Verify variable input
>
>
> I need an example of how to verify that an INPUT variable
> conforms to a
> specific format. For instance, this input should be 10
> numeric characters:
>
> INPUT _CN;PROMPT="Paste or type 10-digit Customer Number here
> : ";READCNT=10
>
> I'm looking for IF statement...
>
> Thanks in advance,
> Michael
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|