Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values through parameter references
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Return values through parameter references
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01337702
Message ID:
01337702
Vues:
63
The command DO FORM frmMyForm WITH Param1, Param2, Param3 TO lResult

passes Param1, Param2, Param3, and lResult by reference.

Param1, Param2, and Param3 are passed to the form's Init method. lResult receives a result from the form's Unload method.

I note that if I assign values to Param1, Param2, and/or Param3 in the Init method of the form, the values appear in the calling form, as you'd expect from a reference.

Is it possible to save the references Param1, Param2, and Param3 to form properties, and then use these form properties to return values to the calling form from elsewhere (other than the Init method) in the called form?

Thanks,
Jim
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform