- Code: Select all Expand view
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE( 20 )
DEFINE DIALOG oDlg
@ 1, 1 GET cVar;
VALID !EMPTY( cVar )
@ 3, 1 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
EMG
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE( 20 )
DEFINE DIALOG oDlg
@ 1, 1 GET cVar;
VALID !EMPTY( cVar )
@ 3, 1 BUTTON "&Close";
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
@ 1, 1 GET cVar;
VALID ( oDlg:aControls[ 1 ]:Assign(), !EMPTY( cVar ) )
METHOD lValid() CLASS TGet
local lRet := .t.
if ::oGet:BadDate
::oGet:KillFocus()
::oGet:SetFocus()
MsgBeep()
return .f.
else
::oGet:Assign() // New !!!
if ValType( ::bValid ) == "B"
lRet := Eval( ::bValid, Self )
if ! lRet
::oWnd:nLastKey = 0
endif
endif
endif
return lRet
Antonio Linares wrote:This is a fix:
- Code: Select all Expand view
METHOD lValid() CLASS TGet
local lRet := .t.
if ::oGet:BadDate
::oGet:KillFocus()
::oGet:SetFocus()
MsgBeep()
return .f.
else
::oGet:Assign() // New !!!
if ValType( ::bValid ) == "B"
lRet := Eval( ::bValid, Self )
if ! lRet
::oWnd:nLastKey = 0
endif
endif
endif
return lRet
Antonio Linares wrote:Enrico,
Yes, we'll see.
The problem is that Class TGet is quite different from Harbour to xharbour.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 76 guests