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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only