home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!munnari.oz.au!metro!cs.uow.edu.au!cc.uow.edu.au!u9048979
- From: u9048979@cc.uow.edu.au (glen eastment)
- Subject: Re: Help with Clipper5.01!!
- Message-ID: <1992Sep2.023355.8221@cc.uow.edu.au>
- Keywords: Clipper, Read
- Organization: University Of Wollongong
- References: <1992Aug29.161928.1@cc.newcastle.edu.au> <1539@rwja.umdnj.edu>
- Date: Wed, 2 Sep 92 02:33:55 GMT
- Lines: 34
-
- green@rwja.umdnj.edu (Cliff Green) writes:
-
- >cslib@cc.newcastle.edu.au (DOUGLAS SCOTT) writes:
-
-
- >> Example: @ 1,1 SAY "Enter first variable:" COLOR "w+/b"
- >> @ 1,20 GET M->var1 PICTURE "XXXX" COLOR "bg+/b"
- >>
- >> IF M->var1 == "TEST"
- >> @ 2,1 SAY "Enter second variable:" COLOR "w+/b"
- >> @ 2,20 GET M->var2 PICTURE "9999" COLOR "bg+/b"
- >> ENDIF
- >> READ
-
- >> All I want to do is to be able to check each variable as it is entered
- >> in the respective field. Is there an easy way?
-
- >I haven't actually tried it, but isn't that what the WHEN clause is for?
- >(e.g., @ x,y say "Blah" get blah when m->fubar =="TEST")
-
- Actually the VALID clause would be better.
- WHEN is for pre-validation, but VALID is for post-validation.
- Post-validation is handy, because it waits till the user enters the
- data in the current get. Pre-validation is handy when determining whether
- to activate that get at all.
-
- eg. get customer number only if (WHEN) customer number has not allready been
- entered. Check if customer number has been entered correctly (VALID).
-
- Cheers!.
-
- <GE> a.k.a. u9048979@wampyr.cc.uow.edu.au
-
-
-