Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if an object exist in a form
Message
De
30/01/2001 15:54:01
 
 
À
30/01/2001 15:30:35
David Brunelle
Université de Sherbrooke
Sherbrooke, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00470302
Message ID:
00470313
Vues:
24
>Hi,
> I was wondering in anybody know a method or property that would tell me if a specific object exist in a class.
> For example, I have a object called 'cntToolbar' that sometime appear in some forms, but not all ( I have more than 500 forms, so creating a logic variable and change it in all class would just take too much time). I wanted to implement code in the generic formToolbar class ( this is a class that is the parent of all other form of my application that contain any toolbar) that would activate a cntToolBar method by a keypress( I already know how this work) IF and ONLY IF the cntToolBar was put in a children form.
> I think I put all the informations needed to answer the question,but if anybody need more detail on it, I can try to give more in a reply.

Look at PEMSTATUS() in help. It can tell you if a Property, Event or Method exists. You might also want to look at the TYPE() function.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform