Page d'accueil
Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Login
ENGLISH
Accueil
ENGLISH
Plateforme Level Extreme
Login
Pratiques d'usage
Témoignages
Fichiers
Articles
Abonnement
Abonnez-vous ou renouveller
Bénéfices
Faites un don de 5$
Faites un don de 10$
Faites un don de 15$
Faites un don de 20$
Faites un don de 25$
Profil corporatif
Aperçu
Portfolio
Produits & Services
Services experts-conseils
Service entreprise
Hébergement Site Web
Infographie
Publication de livres
Support
Troubleshooting
Difficultés pour authentifier
Contactez-nous
Légal
Copyright
Politique de confidentialité
Termes & Conditions
English
Return multiple values from a form
Message
De
24/03/1997 16:19:33
David M. Stowell
Ravenslake Consulting
Chicago
,
Illinois
,
États-Unis
À
24/03/1997 12:38:06
Gérald Santerre
Gerald Santerre enrg.
Mascouche
,
Québec
,
Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Re:
Return multiple values from a form
Divers
Thread ID:
00025415
Message ID:
00025449
Vues:
31
>>How can I return more than one value from a form? Instead of
>>
>>DO FORM
TO retval
>>
>>I would like to
>>
>>DO FORM
TO retval1, retval2, etc.
>>
>>I tried returning an array but only the first array item was returned.
>>
>>Thanks,
>>Ross
>
>You can use a public array and fill it in your form.
>No parameters, no returned values!
>
>BTW Your form must be MODAL. :-]
You're right - the form must be modal to use the TO clause, but there is an OOP way to do this. DEFINE an object that holds the variables you wish to pass back, then pass the object in using the WITH clause. Alter the properties in the object appropriately, then release the modal form. You don't even need the TO clause at that point, though I tend to use it as a logical to indicate whether the object was correctly updated.
David M. Stowell
Ravenslake Consulting
Chicago, Illinois
e-mail:
davidstowell@ravenslakeconsulting.com
Précédent
Répondre
Fil
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement
Click here to load this message in the networking platform
Plateforme Level Extreme
Pratiques d'usage
Témoignages
Fichiers
Articles
Abonnement
Abonnez-vous ou renouveller
Bénéfices
Faites un don de 5$
Faites un don de 10$
Faites un don de 15$
Faites un don de 20$
Faites un don de 25$
Profil corporatif
Aperçu
Portfolio
Produits & Services
Services experts-conseils
Service entreprise
Hébergement Site Web
Infographie
Publication de livres
Support
Troubleshooting
Difficultés pour authentifier
Contactez-nous
Légal
Copyright
Politique de confidentialité
Termes & Conditions
Login
Google
Copyright © 1993-2024 par Level Extreme Inc. Tous droits réservés · Site Web conçu par
levelextreme.com