Jump to content
Fivewin Brasil

Button c/ IF


Luiz Fernando

Recommended Posts

Colegas estou tentando usar um button com a condição if mais não esta tanto certo, tenho um variável oDlg:ca, queria que qdo pressionar o button ela verifica se o valor da variável e .T. ,se sim dar o valor de .F. e se for .F. finalizar o dialog...tentei assim mais não esta tanto certo.

REDEFINE BUTTON ID 106 if(oDlg:ca=.T.,ACTION(oDlg:ca=.F.),ACTION(oDlg:eND())).

Luiz Fernando

FW 2.4, CLIPPER 5.3, BLINKER 7.0, WORKSHOP, DBASE, CDX

Link to comment
Share on other sites

Colegas estou tentando usar um button com a condição if mais não esta tanto certo, tenho um variável oDlg:ca, queria que qdo pressionar o button ela verifica se o valor da variável e .T. ,se sim dar o valor de .F. e se for .F. finalizar o dialog...tentei assim mais não esta tanto certo.

REDEFINE BUTTON ID 106 if(oDlg:ca=.T.,ACTION(oDlg:ca=.F.),ACTION(oDlg:eND())).

Luiz Fernando

FW 2.4, CLIPPER 5.3, BLINKER 7.0, WORKSHOP, DBASE, CDX

Link to comment
Share on other sites

faça deste jeito...

REDEFINE BUTTON ID 106 ACTION if(oDlg:ca,oDlg:ca:=.F.,oDlg:eND()).

Alessandro F. Silvaid=blue>

E-mail :aferracini@terra.com.br

FW2.0d + CL53b + Blinker 7.0 + @Say + CDX

MSN: ferracini_silva@hotmail.com

Ribeirão Preto/SP

Editado por - aferra on 09/01/2007 10:14:25

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...