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.