Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set a variable to a property?
Message
De
31/03/2021 18:03:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01679404
Message ID:
01679407
Vues:
65
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform