Date:  04/27/2004 11:31:55 AM Msg ID:  001976
From:  Gabriel Badea Thread:  001957
Subject:  Re: Getting return value from DO ... IN ...
As Foxweb support suggested do the SET PROCEDURE TO <filename> ADDITIVE stuff...
Then you can call the procedure/function and assign its return value to a variable
 
Another way is to :
1. Declare a public/private variable before the "DO....".
2. Your procedure can then save the result to the public/private variable you created.
3. Destroy the variable afterwards.
 
Hope this helps...
 
Gabriel
 
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