Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local variables
Message
 
À
01/09/2000 08:42:00
Robert Arnett
Saints Software and Systems
Kosciusko, Mississippi, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00410962
Message ID:
00411739
Vues:
15
Bob,

I would say that it really depends on the scope you need for that piece of data. If you only need it for one method, it is better to just use a LOCAL variable. If you need it for the life of an object (like a form), then I would use a property of the form.

In your case, if you need it for the life of your BizObj, it should be a property of the BizObj. That way, if you ever need to instantiate your BizObj as a COM object, your property will exist with your BizObj instead of relying on the FoxPro form to exist.... which it may not when using a COM object.

>Thanks Doug
>I seem to be getting the hint that where I used to do Public/Private, we now use the properties. Is that the way to handle variables? Thanks Bob A

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform