home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!spool.mu.edu!news.cs.indiana.edu!umn.edu!dell32.ortta.umn.edu!durai
- From: durai@ortta.umn.edu (Durai Venkatasubramanian)
- Subject: Re: UDF problem in FoxBase+
- Message-ID: <durai.123.726545367@ortta.umn.edu>
- Lines: 42
- Sender: news@news2.cis.umn.edu (Usenet News Administration)
- Nntp-Posting-Host: dell32.ortta.umn.edu
- Organization: U of Mn
- References: <1ikr8sINN5bq@mizar.usc.edu>
- Date: Sat, 9 Jan 1993 02:09:27 GMT
- Lines: 42
-
- In article <1ikr8sINN5bq@mizar.usc.edu> lapworth@mizar.usc.edu (Bill Lapworth) writes:
- >From: lapworth@mizar.usc.edu (Bill Lapworth)
- >Subject: UDF problem in FoxBase+
- >Date: 8 Jan 1993 13:21:32 -0800
- >
- >* 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?
- >
- >
- you should set procedure to the program calling the function isok.
-
- For example, if function isok is called by program, say, callprg, then the
- first line of the program callprg should be (in your case, the program where
- you have defined height = ...) "set procedure to callprg".
-
- set procedure to callprg
- height = 99
- get height valid isok(height)
- read
-
- function isok
- parameters value
- return something
-