home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!bu.edu!olivea!sgigate!sgiblab!swrinde!gatech!destroyer!gumby!yale!yale.edu!news.yale.edu!mars.caps.maine.edu!maine.maine.edu!cunyvm!psuvm!auvm!UTHSCSA.BITNET!BURNFIELD
- From: BURNFIELD@UTHSCSA.BITNET
- Newsgroups: bit.listserv.dbase-l
- Subject: Re: Recognize Current Field Name
- Message-ID: <DBASE-L%92111716054509@TECMTYVM.MTY.ITESM.MX>
- Date: 16 Nov 92 15:07:00 GMT
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- Lines: 17
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Original_To: BITNET%"DBASE-L@TECMTYVM.BITNET"
- Original_cc: BURNFIELD
-
- You should be able to put your comparison function in a VALID clause in the
- GET statement that corresponds to the variables of interest. The function would
- get called after the user entered data into the current get variable. You could
- pass the needed data as arguments to the function similar to the following:
-
- @ x,y GET var1 VALID checkdata(var1,var2,...)
-
- The checkdata function would get called after the user terminated the data in
- var1; which then gets passed to checkdata as an argument. You could then
- return .T. or .F. depending on whether you wanted to remain in that get or
- go on to the next one.
-
- I've never used dBase IV; however, the above method works in Foxbase+ and
- should be very similar to what you could do with dBase IV.
-
- Dean Burnfield
- The University of Texas Health Science Center at San Antonio
-