Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine the object existed
Message
De
08/09/1999 22:21:26
Adam Weisberg
Adam Weisberg Consulting
Athens, Ohio, États-Unis
 
 
À
31/08/1999 23:45:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00260014
Message ID:
00262714
Vues:
13
One way to do it is to have any control class necessary register themselves with the owning form, provided the owning form has a particular method, as judged by PemStatus(). So you PemStatus() from myctrl.Init() to see if Thisform has method m_registercontrol. If so, send it a:

Thisform.m_registercontrol(This)

Then m_registercontrol increases the dimensionality of a form property, say r_aoRegisteredObjects, and adds the object to it. It is a simple matter after that to see if a particular object is in your array or not.

Adam
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform