Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable/Enable a command button
Message
De
07/12/1999 19:18:26
 
 
À
07/12/1999 19:11:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00300087
Message ID:
00300126
Vues:
25
>>Hi Peter,
>>
>>>THIS.ENABLED=IIF(THISFORM.MyProperty=.T.,.T.,.F.)
>>>THIS.ENABLED=IIF(SetActiveOnOff,.T.,.F.)
>>
>>Just a comment, but if the second and third of your iif()'s are .T. and .F. you probably don't need an IIF:
>>
>>THIS.ENABLED = THISFORM.MyProperty
>>THIS.ENABLED = SetActiveOnOff

>>
>>And put a not in front if it you pass .F. then .T.
>
>Mike,
>
>I´d thought of it as two slightly different approaches, one where toy have a MyProperty on the form, and another where you just pass a variable, when it happens, or am I missing something here?

t doesn't matter if it's a variable, field, property or expression; a logical value is either true or not, and there's no advantage to using the = comparator.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform