Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Receiving parameter
Message
 
 
To
31/05/2006 19:09:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01126192
Message ID:
01126342
Views:
19
>>>Hi all!
>>>I have 2 prg's called 'A' and 'B'. 'A' runs first and calls 'B' with a parameter. When 'B' has finished running, it has a returning value.
>>>I have no idea how to passed this value back to 'A'.
>>>Thanks,
>>>Tamas
>>
>>
* a.prg
>>lvReturned = b(param1, param2, param3)
>>
>>* b.prg
>>LPARAMETERS p1, p2, p3
>>...
>>RETURN lvRetVal
>>
>
>Thanks Sergey!
>Is it possible to use the 'do' command like this 'do a.prg with param' and receive the returning value?
>
>Tamas

No. Only if you pass it by reference and receive as a parameter. DO doesn't allow to return value.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform