Date:  04/07/2004 02:56:39 PM Msg ID:  001958
From:  FoxWeb Support Thread:  001957
Subject:  Re: Getting return value from DO ... IN ...
On possibility would be to use SET PROCEDURE TO:
 
SET PROCEDURE TO \db\myprog
retval = WidgetStuff()
 

FoxWeb Support Team
support@foxweb.com email

Sent by David Hempy on 04/07/2004 01:57:29 PM:
This isn't really a FoxWeb question, but I'm hoping someone here knows the answer.
 
I'd like to call a function in another file, such as this:
 
DO WidgetStuff IN \db\myprog
 
WidgetStuf() returns a value that I need to check.  Is there any way to access the return value using the DO WidgetStuff IN... syntax? 
 
I could use reference parameters...I can do that, but I don't really want to go change old functions' behaviour if I can help it.
 
I've scoured the VFP docs and I haven't found any indication of an answer, positive or negative.  Google didn't offer any help, either.
 
 
Any suggestions?
 
-dave
 

--
David Hempy
Internet Database Administrator
Kentucky Educational Television
(859)258-7164  -  (800)333-9764