Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Reset all properties back to default
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00922935
Message ID:
00922941
Vues:
11
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
Fil
Voir

Click here to load this message in the networking platform