home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!almserv!mimas!g9utxu
- From: g9utxu@fnma.COM (Tanin Uthayanaka)
- Subject: Re: UDF problem in FoxBase+
- Message-ID: <1993Jan8.222431.7382@almserv.uucp>
- Sender: usenet@almserv.uucp
- Nntp-Posting-Host: mimas
- Reply-To: g9utxu@fnma.COM
- Organization: Fannie Mae
- References: <1ikr8sINN5bq@mizar.usc.edu>
- Date: Fri, 8 Jan 1993 22:24:31 GMT
- Lines: 30
-
- In article 1ikr8sINN5bq@mizar.usc.edu, lapworth@mizar.usc.edu (Bill Lapworth) writes:
- >
- >* I'm playing with FoxBase+ without a manual (it's coming, but not too
- >* soon!) and I can't get a UDF to work in the valid clause.
- >*
- >* If I run the following code, I get a 'file not found' error message
- >* upon exiting the get
- >
- >height = 100.0
- >@ 0,0 clear
- >@ 3,1 say "Height in CM: " get HEIGHT valid isok(HEIGHT)
- >read
- >cancel
- >
- >function isok
- > parameter value
- >return iif( value > 150, .F., .T. )
- >
- >* I tried moving the UDF isok to it's own .prg file and added the following
- >* line at line 1: set procedure to c:\spiro\isok
- >* This time I got the error message 'No parameter statement found'
- >
- >* Anybody got any clues?
- >
- >
-
-
- Try entering SET PROCEDURE TO <filename> in the beginning of your program.
- <filename> is the name of .PRG file.
-
-