Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>Is it possible to have multiple return values coming from a form. If so how?
>>
>>Several strategies.
>>
>>1. Pass the calling form/object as a parameter and have the called form manipulate appropriate properties on the calling form.
>>
>>2. Instantiate the form with CREATEOBJECT syntax, have the calling program/form reference needed properties on the called form to assign values, then close the form.
>>
>>3. Set public variables (ugh).
>>
>>4. In VFP 7, you can return an array from a form/function, but there are some restrictions.
>>
>
>Or (5) instance and return a parameter object, which can be as complex as you'd care to make it!
Good catch! I did one once, but I guess I'd use that, as you say, in more complex situations, particularly where you want a persistent object to reference at different points.
Jay
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement