Luiz Fernando Posted January 9, 2007 Report Share Posted January 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted January 9, 2007 Author Report Share Posted January 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
aferra Posted January 9, 2007 Report Share Posted January 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted January 10, 2007 Author Report Share Posted January 10, 2007 Valeu colega grato,deu certinho esta linha de comando.... Luiz Fernando FW 2.4, CLIPPER 5.3, BLINKER 7.0, WORKSHOP, DBASE, CDX Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.