Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return a value to a method from a program.
Message
De
02/10/2003 10:20:45
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/10/2003 10:18:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00834254
Message ID:
00834257
Vues:
16
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform