HP3000-L Archives

September 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tracy Pierce <[log in to unmask]>
Reply To:
Tracy Pierce <[log in to unmask]>
Date:
Wed, 26 Sep 2001 14:27:30 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
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 *

ATOM RSS1 RSS2