Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Translating Object Properties to variables
Message
 
To
08/02/1999 11:47:55
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00185095
Message ID:
00185110
Views:
17
Sebastiaan,

That would be the same when you would declare a variable no? You have to assign a value to a variable, and thus to a property in order for it to be of a type. This _is_ foxpro.

:)

Regards,

Marc


>Marc,
>
>Thanks for the reply. It seems to have something to do with the data type I initially give the property. It defaults to logical. In the Visual Environment however, I can't find any way to Add a property and then change its data type.
>
>Bye en groeten terug,
>
>Sebastiaan,.
>
>>Hi Sebastiaan,
>>
>>I'm surprised that you have the problem you are talking about. Inside the object you should use the This.Property syntax and outside (meaning not in one of the methods of the object), you should use the ObjectName.Property syntax. Otherwise, it works exactly the same.
>>
>>HTH,
>>
>>en groetjes,
>>
>>Marc
>>
>>
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform