Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value from a form?
Message
De
01/12/2003 12:30:25
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
01/12/2003 08:59:38
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00854035
Message ID:
00854733
Vues:
25
>Hi Mike
>
>Another possible solution is to use a parameter object.
>
>You create a custom object. Add all the properties you want to it. You pass it to the form. The form uses the properties of the object like it would use parameters. The form can also update the properties and pass the object back.

More precisely, doesn't need to pass anything back. Since the objects are always passed by reference, the passed object will be actually a reference to the original object, so anything the form does to this reference happens to the original.

I find this approach tremendously easy, because in case you need any additional parameters, simply add more properties to the object. I think this sort of usage was one of the main reasons Empty class was invented for VFP8.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform