home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!pacbell.com!network.ucsd.edu!munnari.oz.au!mel.dit.csiro.au!yarra!pta!g2syd!michaelh
- From: michaelh@g2syd.genasys.com.au (Michael Haldey)
- Newsgroups: comp.databases
- Subject: Re: Help with Clipper5.01!!
- Keywords: Clipper, Read
- Message-ID: <1992Aug31.002345.14600@g2syd.genasys.com.au>
- Date: 31 Aug 92 00:23:45 GMT
- References: <1992Aug29.161928.1@cc.newcastle.edu.au>
- Organization: Genasys II, Sydney, Australia
- Lines: 58
-
- In article <1992Aug29.161928.1@cc.newcastle.edu.au> john@pleiades.newcastle.edu.au writes:
- ...
- > I am new to clipper and have one major question. How can I perform
- > a multiple read and still be able to obtain the variables that are read?
- >
- > Example: @ 1,1 SAY "Enter first variable:" COLOR "w+/b"
- > @ 1,20 GET M->var1 PICTURE "XXXX" COLOR "bg+/b"
-
- Actually, you can not receive the value of var1 before
- you 've issued a READ statement
-
- >
- > IF M->var1 == "TEST"
-
- You do not know the var1
-
- > @ 2,1 SAY "Enter second variable:" COLOR "w+/b"
- > @ 2,20 GET M->var2 PICTURE "9999" COLOR "bg+/b"
- > ENDIF
- >
-
- > READ
- ONLY READ STATEMENT (actually, readmodal() in GETSYS.PRG) input the
- data. Before that you do not know what was input.
-
- >
- > 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?
- >
-
- Use VALID clause with a codeblock.
-
- > I tried LOOPER() in the super.lib, but although it will give the effect
- > of multiple reads with a single read statement, it still does not allow you
- > to obtain the entered value before terminating the complete read.
- >
-
- Why use something else? Standard Clipper lets you do all the things.
-
- > If anyone knows of an easy way of doing this I would appreciate it if
- > they could tell me how, or even better show me some source code.
- >
-
- May be I do not understand what do you really want but this is a
- standard thing in Clipper (look for GET description).
-
- > Thanks for any help.
- >
- > Jonathan Coombes
-
- My 0.02
- Michael
-
- --
- Michael Haldey | Genasys II Pty Ltd
- | 13th Level, 33 Berry St, North Sydney, NSW, Australia
- | Phone: +61-2-954-2878 (-9930 FAX)
- | Internet: michaelh@g2syd.genasys.com.au
-