Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there an instance of a class
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Is there an instance of a class
Miscellaneous
Thread ID:
00414089
Message ID:
00414089
Views:
62
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
Regards,
Peter J. Kane



Pete
Next
Reply
Map
View

Click here to load this message in the networking platform