PROBLEMAS CON COMANDO CANCEL EN UN BOTON

PROBLEMAS CON COMANDO CANCEL EN UN BOTON

Postby ctoas » Thu Mar 16, 2006 2:32 pm

Buenas Amigos...

TENGO UN GET CON UN VALID CONFORME ABAJO:

Código:

REDEFINE VGET oGetCodCli VAR CLIENCOD2 ID 4003 ;
PICTURE IF(CADPARAM->FLAG_CGC_C,"999999999999","99999") ;
OF oFol:aDialogs[1] ;
VALID PESQCLIEN()


REDEFINE BUTTONBMP oBtnSai ID 4029 of oDlg;
BITMAP "SALIR";
ACTION( lSalir := .T., ENCERRADLG() ) CANCEL


Bién...

SE CARGO LA DIALOG Y CLICO EN EL BOTON SALIR, EL SALE NORMALMENTE, PERO SE EL PASAR POR LA VALIDACION Y RETORNA .F., EL BOTON NO EJECUTA EL COMANDO CANCEL.

KE HICE DE ERRADO??


Gracias, y Saludos a todos.
Last edited by ctoas on Fri Mar 17, 2006 12:07 pm, edited 1 time in total.
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
ctoas
 
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil

Postby carlos vargas » Thu Mar 16, 2006 5:21 pm

Code: Select all  Expand view
...
Redefine BUTTONBMP oBtnSai ID 4029 of oDlg;   BITMAP "SAIR";   ACTION(lSair:=.t.,ENCERRADLG())

oBtnSai:lCancel := .t.
...


salu2
carlos vargas
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1704
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Postby ctoas » Thu Mar 16, 2006 5:54 pm

carlos vargas wrote:
Code: Select all  Expand view
...
Redefine BUTTONBMP oBtnSai ID 4029 of oDlg;   BITMAP "SAIR";   ACTION(lSair:=.t.,ENCERRADLG())

oBtnSai:lCancel := .t.
...


salu2
carlos vargas


Amigo...

Não deu certo....
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
User avatar
ctoas
 
Posts: 115
Joined: Wed Oct 26, 2005 2:38 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: George, Otto and 152 guests