Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return a value from a form?
Message
De
02/12/2003 01:53:08
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/12/2003 15:34:52
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00854035
Message ID:
00854911
Vues:
19
I have too much time on my hands, Q.E.D. :)

>Yes. That's very precise!
>
>>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform