Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enabled property
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00491011
Message ID:
00491020
Vues:
9
>Hi All,
>
>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?
>
>I have verified that ThisForm.lCustomProperty is being set properly.
>
>Thanks...
>
>Bob

If you are using VFP 6, you can use an associated _Assign method for that property. WHenever you set the form property, the Assign method will fire and you can do any other processing you want.

Check out _Assign in the VFP help.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform