home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / 8948 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.2 KB  |  44 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!almserv!mimas!g9utxu
  3. From: g9utxu@fnma.COM (Tanin Uthayanaka)
  4. Subject: Re: UDF problem in FoxBase+
  5. Message-ID: <1993Jan8.222431.7382@almserv.uucp>
  6. Sender: usenet@almserv.uucp
  7. Nntp-Posting-Host: mimas
  8. Reply-To: g9utxu@fnma.COM
  9. Organization: Fannie Mae
  10. References: <1ikr8sINN5bq@mizar.usc.edu>
  11. Date: Fri, 8 Jan 1993 22:24:31 GMT
  12. Lines: 30
  13.  
  14. In article 1ikr8sINN5bq@mizar.usc.edu, lapworth@mizar.usc.edu (Bill Lapworth) writes:
  15. >
  16. >* I'm playing with FoxBase+ without a manual (it's coming, but not too
  17. >* soon!) and I can't get a UDF to work in the valid clause.
  18. >*
  19. >* If I run the following code, I get a 'file not found' error message
  20. >* upon exiting the get
  21. >
  22. >height = 100.0
  23. >@ 0,0 clear
  24. >@ 3,1  say "Height in CM: " get HEIGHT valid isok(HEIGHT)
  25. >read
  26. >cancel
  27. >
  28. >function isok
  29. >    parameter value
  30. >return iif( value > 150, .F., .T. )
  31. >
  32. >* I tried moving the UDF isok to it's own .prg file and added the following
  33. >* line at line 1: set procedure to c:\spiro\isok
  34. >* This time I got the error message 'No parameter statement found'
  35. >
  36. >* Anybody got any clues?
  37. >
  38. >
  39.  
  40.  
  41. Try entering SET PROCEDURE TO <filename> in the beginning of your program. 
  42. <filename> is the name of .PRG file.
  43.  
  44.