Hi,
You can use loYourObject.ResetToDefault("PropertyName") it's reset your property value to default value. As well.. it works fine with common object properties. If you want restore to default your custom property, you must write additional code in ResetToDefault method. because as default - your custom property will restored to .F.
Lparameters cProperty
do case
case cProperty = "mycustomproperty1"
Return(YourDefaultPropertyValue)
ENDCASE
>Anyone know if there is a way to reset all properties for a (custom) object back to default?
>
>After I have finished with this object I want to reset all the custom properties back to their defaults so that the object is ready to be reused. I thought that calling the Init() method would do this but it appears not.
>
>Thanks,
> Nick
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement