Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Reset all properties back to default
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00922935
Message ID:
00922941
Views:
10
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
Map
View

Click here to load this message in the networking platform