Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement