Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating Object Properties to variables
Message
 
À
08/02/1999 11:43:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00185095
Message ID:
00185105
Vues:
33
try thisform.property="Tulip"




>Yeah, right, it defaults to Logical, But in the visual environment I don't see how to set the data type. I can just "Add Property" and it defaults to logical.
>
>So that's probably my problem there. How do I set the data type on a property?
>
>>Hi Sebastiaan,
>>
>>You should certainly be able to use an string functions on a character based property of your object such as x=len(allt(client.name)). Perhaps the property is not initialized to character? It defaults to logical. What is the error message you get? What is the line of code?
>>
>>>Hi, all
>>>
>>>Probably a newbie question here, but I created an object (for instance client) and added the property name to it. Now I can use the object anyway I want, but as soon as I want to use the contents of that property to do some text-editing (like doing a LEFT() or a LEN() function) I get an error message. I assume this is due to a difference in character data-types and object-property types.
>>>
>>>Anyone know a function to translate object properties to tekst-strings?
>>>
>>>thanks,
>>>Sebastian

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform