Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enabled property
Message
De
03/04/2001 21:20:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491011
Message ID:
00491655
Vues:
7
>Can you set the enabled property of a control via a property on a form? I have a control on a form that I want to toggle the enabled property based upon a custom form property. In the controls Enabled property window I have placed (using the expression builder) =ThisForm.lCustomProperty, =This.Parent.lCustomProperty as well as =IIF(ThisForm.lCustomProperty, .T., .F.). What am I doing wrong?

VFP properties are not dynamic (except for the ones that start with Dynamic of course). So when you start your form, and it has "=llVariable" in a property, that property is evaluated and teh value is stuck in teh property. No chance of getting its expression back.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform