Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50-Appllication Object
Message
De
24/02/1997 10:24:39
 
 
À
24/02/1997 09:58:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Divers
Thread ID:
00021768
Message ID:
00021782
Vues:
40
>>>What is the reason for the "Application Object" or
>>>"Application Class"?
>>>
>>>Rob
>>
>>If you want to scope some things (variables,procedures) for whole application, you can create App object (DEFINE CLASS, CREATEOBJECT()) in start module and use its properties and methods.
>
>Ed..
>
>When will you call this App object. Where do you put it. Is it like a
>"main.prg"?
>
>Rob

Yes, I used to call it 'start.prg'. You can call app object anytime you need. For example, you have many messageboxes and you want to have common and portatble title for them. So, you use oApp.msgtitle property defined once in start.prg and use it as third parameter in all =messagebox() functions.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform