Ciao Fabio, mi sembra di aver capito che tu voglia reimpostare il valore di default della classe una volta "appiccicata" su un form. Mi sembra che non sia possibile in quanto VFP come valore di default intende quello impostato nella classe di origine. Io nei miei oggetti ho inserito una proprietà nella quale memorizzo il valore che mi interessa. Spero di essere stato chiaro e sopratutto di aver capito il tuo problema.
Ciao ALessio.
Hi Fabio, as far as i'm concerned VFP use as default value the one you put in the class when you define it, not the one you assign when you put the class in a form. I usually create properties in the classes in which I store my default value
HTH
Alessio
>I have a property
>
>myProperty = VCXorPRGDefaultValue
>
>
>On program i can restore it with
>
>Class::ResetTodefault('myProperty')
>
>
>but if i put the class on a SCX, with
>
>myProperty = SCXDefaultValue
>
>
>how I can restore the value to the SCXDefaultValue?
>
>Thanks.