Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign object reference to the value property ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00287736
Message ID:
00287755
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform