>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.
SomeVariable = MyProgram()
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)