Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return a value to a method from a program.
Message
From
02/10/2003 10:20:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
02/10/2003 10:18:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00834254
Message ID:
00834257
Views:
15
This message has been marked as the solution to the initial question of the thread.
>In VFP 6.0, I have a form where I want to call a external prg that returns a value to the form. I am passing a parameter to the external prg. I need to pass back the results.
>
>How can I do this?
>
>Thanks,
>
>-Greg

End the external PRG with:
RETURN SomeValue
To call the PRG, call it as if it were a function.
* Call MyProgram.prg and get the return value
SomeVariable = MyProgram()
* or:
SomeVariable = MyProgram(parameter1, parameter2)
HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform