Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetAll() - command -
Message
From
02/02/1999 07:00:31
 
 
To
02/02/1999 06:40:32
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00182871
Message ID:
00182874
Views:
8
>Hi all
>
>I want to disable all my objects in the active form.I know that SetAll allows it.Is my syntax correct ?
>
>SetAll("Enabled",IIF(oApp.cmdNew.Click(),.T.,.F.))
>
>Thanks for your help

Hi,

I don't see where you could put this line of code, as it needs to be evaluated constantly to work.

It seems that initially you want all objects to be disabled, and then enable them when you press the cmdNew button. In that case, I'd put this in the Init-event of the form or so :
SetAll("Enabled", .F.)
and this in the Click() method of cmdNew :
SetAll("Enabled", .T.)

Hope this helps...

Marc Van Riet
Previous
Reply
Map
View

Click here to load this message in the networking platform