home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / bit / listserv / dbasel / 1205 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.4 KB

  1. 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
  2. From: BURNFIELD@UTHSCSA.BITNET
  3. Newsgroups: bit.listserv.dbase-l
  4. Subject: Re: Recognize Current Field Name
  5. Message-ID: <DBASE-L%92111716054509@TECMTYVM.MTY.ITESM.MX>
  6. Date: 16 Nov 92 15:07:00 GMT
  7. Sender: "Discussion on the use of the dBase language and related
  8.               dialects" <DBASE-L@NMSUVM1.BITNET>
  9. Lines: 17
  10. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  11. Original_To:  BITNET%"DBASE-L@TECMTYVM.BITNET"
  12. Original_cc:  BURNFIELD
  13.  
  14. You should be able to put your comparison function in a VALID clause in the
  15. GET statement that corresponds to the variables of interest. The function would
  16. get called after the user entered data into the current get variable. You could
  17. pass the needed data as arguments to the function similar to the following:
  18.  
  19. @ x,y GET var1 VALID checkdata(var1,var2,...)
  20.  
  21. The checkdata function would get called after the user terminated the data in
  22. var1; which then gets passed to checkdata as an argument. You could then
  23. return .T. or .F. depending on whether you wanted to remain in that get or
  24. go on to the next one.
  25.  
  26. I've never used dBase IV; however, the above method works in Foxbase+ and
  27. should be very similar to what you could do with dBase IV.
  28.  
  29. Dean Burnfield
  30. The University of Texas Health Science Center at San Antonio
  31.