Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set a variable to a property?
Message
From
31/03/2021 18:03:12
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01679404
Message ID:
01679407
Views:
66
>How do you set a property to a public variable?
>
>For example, I have a BIZ object that has a property PRE_FILTER. I set the value of this property to =cTest
>The cTest is a public variable (for testing) and I set the value of "IN_SERVICE = 'Y'" to this variable.
>But it has no effect. That is, when BIZ object is instantiated, it ignores the =cTest
>What am I missing?
>
>UPDATE. If I set the value of the property PRE_FILTER to IN_SERVICE = 'Y', it works. So, the problem must be the way I set the variable to the property.

What were you trying to do? Were you trying to assign IN_SERVICE property to the string "IN_SERVICE = 'Y'" or the value you get when this string is evaluated?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform