Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there an instance of a class
Message
De
08/09/2000 18:18:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00414089
Message ID:
00414473
Vues:
19
Will this do the trick:

*--- oclass is instantiated
? type('oclass')
displays 'O'

*--- oclass is not instantiated
? type('oclass')
displays 'U'


>Hello All,
>I have a custom property in my base data entry form class, which is used as an object reference to my custom DE class. As many forms use the same DE, I would like to utilise an existing instance for all open forms, I thought I could use Ainstance() but this only works with variables created by CreateOject() not form properties. This is what I tried in the Load event of the form class
>
>

>If Ainstance(aDE,This.cDEClass) > 0
> This.oDataManager = Eval(aDE[1])
>EndIf
>

>
>the trouble is it always returns 0, any ideas welcome
>
>Cheers
>
>Pete Kane
Thanks,

Stacy



Black Mountain Software, Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform