Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable/Enable a command button
Message
From
07/12/1999 19:22:01
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00300087
Message ID:
00300129
Views:
32
>>>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.

Got´cha!
Thank´s for setting me straight on this.

Peter
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Reply
Map
View

Click here to load this message in the networking platform