Good point. Thanks Larry. Do you know off hand if this behavior is the same in VFP7? Obviously it would be nice if even user defined properties could be reset to the "default" value.
Bill
>
>One thing to watch out for is using this method on user-defined properties. There really is no "default" value for user-defined properties. If you use ResetToDefault, you will end with the property being set to a logical .F..
>
>Ex.
>clear
>ox = createobject('cusDefault')
>? ox.NewProperty
>ox.ResetToDefault('NewProperty')
>? ox.NewProperty
>return
>
>define class cusDefault as custom
> NewProperty = 25
> procedure Init
> THIS.NewProperty = 27
> endproc
>enddefine
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.