Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hidden property disappears in Runtime
Message
From
24/07/2003 13:58:51
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00812997
Message ID:
00813197
Views:
7
Sergey,
I do use dodefault() in the destroy, but it's after trying to set the value to .null.
Define class myClass ...
  hidden oControl_Next

  Procedure Destroy()
    this.oControl_Next = .null.        << "property oControl_Next not found" in runtime
    return dodefault()
EndDefine
>Bill,
>
>Do you've DODEFAULT() or '::' in the subclass Destroy event? IIRC, it could case such error.
>
>>I'm using VFP 7.0
>>I have a hidden property that disappears before the Destroy() method during runtime.
>>
>>Define class myClass ...
>>  hidden oControl_Next
>>
>>  Procedure Destroy()
>>    this.oControl_Next = .null.        << "property oControl_Next not found" in runtime
>>EndDefine
>>
>>class works fine during development, just in runtime it crashes.
>>
>>If I change the property to protected, then it works in runtime also.
>>
>>I've verified that the property is not used anywhere in any subclasses.
>>
>>TIA
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform