Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating Object Properties to variables
Message
From
08/02/1999 11:43:31
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00185095
Message ID:
00185102
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform