home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8946 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  974 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!usc!usc!not-for-mail
  2. From: lapworth@mizar.usc.edu (Bill Lapworth)
  3. Newsgroups: comp.databases
  4. Subject: UDF problem in FoxBase+
  5. Date: 8 Jan 1993 13:21:32 -0800
  6. Organization: University of Southern California, Los Angeles, CA
  7. Lines: 24
  8. Message-ID: <1ikr8sINN5bq@mizar.usc.edu>
  9. NNTP-Posting-Host: mizar.usc.edu
  10.  
  11.  
  12. * I'm playing with FoxBase+ without a manual (it's coming, but not too
  13. * soon!) and I can't get a UDF to work in the valid clause.
  14. *
  15. * If I run the following code, I get a 'file not found' error message
  16. * upon exiting the get
  17.  
  18. height = 100.0
  19. @ 0,0 clear
  20. @ 3,1  say "Height in CM: " get HEIGHT valid isok(HEIGHT)
  21. read
  22. cancel
  23.  
  24. function isok
  25.     parameter value
  26. return iif( value > 150, .F., .T. )
  27.  
  28. * I tried moving the UDF isok to it's own .prg file and added the following
  29. * line at line 1: set procedure to c:\spiro\isok
  30. * This time I got the error message 'No parameter statement found'
  31.  
  32. * Anybody got any clues?
  33.  
  34.  
  35.