>Hi All,
>
>What's wrong in this code ?
>
>oTest = CREATEOBJECT("Test")
>
>DEFINE CLASS test AS CUstom
> Value = .NULL.
> FUNCTION Init
> THIS.Value= THIS && -> Data Type mismatch
> ENDFUNC
>ENDDEFINE
Marcel, I can only guess, but from what I have read in Help for Value property it has allowed data types. For the controls listed there the Data types seem to refer to the allowed Data Types which correspond to the data types allowed for table fields. As there is no Object field type, I think it is not allowed for Value property in any case. There is no mention of custom object though.
Why you don't want to use the custom property, say, .oValue which will do this?
Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison