Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hidden property disappears in Runtime
Message
De
24/07/2003 13:58:51
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00812997
Message ID:
00813197
Vues:
8
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform