Código: Selecionar todos
IF ! Empty( bValid )
ON LOSTFOCUS Eval( bValid )
ENDIF
O que pesquisar numa hora dessas ?
Moderador: Moderadores

Código: Selecionar todos
IF ! Empty( bValid )
ON LOSTFOCUS Eval( bValid )
ENDIF

Código: Selecionar todos
#include "frm_class.ch"
FUNCTION frm_Valid( Self, aItem )
LOCAL nSelect, lFound := .T., xValue, nPos
MsgExclamation( "Entrou no frm_Valid, verificando button" )
// if btn cancel abort validate (current on hwgui only)
nPos := hb_AScan( ::aControlList, { | e | e[ CFG_CTLTYPE ] == TYPE_BUTTON .AND. ;
e[ CFG_CAPTION ] == "Cancel" } )
IF nPos != 0
IF GUI():IsCurrentFocus( ::xDlg, ::aControlList[ nPos, CFG_FCONTROL ] )
RETURN .T.
ENDIF
ENDIF
MsgExclamation( "Continuando" )
xValue := GUI():ControlGetValue( ::xDlg, aItem[ CFG_FCONTROL ] )
IF aItem[ CFG_ISKEY ]
MsgExclamation( "Entrou no ISKEY" )
IF aItem[ CFG_FTYPE ] == "C"

Código: Selecionar todos
IF GUI():LibName() $ "FIVEWIN,HWGUI"
/* dummy textbox to works last valid */
AAdd( ::aControlList, EmptyFrmClassItem() )
Atail( ::aControlList )[ CFG_CTLTYPE ] := TYPE_BUG_GET
GUI():TextCreate( ::xDlg, ::xDlg, @Atail( ::aControlList )[ CFG_FCONTROL ], ;
nRow, nCol, 0, 0, " ", "", 0, { || .T. },,,@Atail( ::aControlList )[ CFG_FCONTROL ], Self )
ENDIF
