Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to assign object reference to the value property ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00287736
Message ID:
00287755
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform