General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only