Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values through parameter references
Message
De
11/08/2008 08:52:11
 
 
À
10/08/2008 16:26:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01337702
Message ID:
01338000
Vues:
14
>Interesting point. I generally assume that any form that is expected to return or set a value probably "should" be modal, because if it is not, you gotta do a lot of hand-waving and peeking and poking to see what has been happening in the "secondary" form. In that case, I suppose one might as well turn on some actual event handling for a cleaner process.

If you want a modeless form to return a value, then the passing of an object with properties to hold the values works very well. But the object has to exist globally at the calling program to the modeless form. In this case setup an event and bind a UDF to it. Then in the modeless form, raise the event when returning. You also need to take care to remove the modeless form if the calling form/procedure ends (nothing to return to...).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform