Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an instance of a class
Message
From
08/09/2000 18:18:06
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00414089
Message ID:
00414473
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform