Antonio:
The last time I sent you a suggested fix in TGet [I forgot what it was
about
], I pasted a modified version of ::EditUpdate() I've been using for several years now and in which I added the call to ::oGet:assign()
to ensure the Clipper/[x]Harbour buffer was always in sync with FW/FWH's.
That could be an alternate fix for this problem:
METHOD EditUpdate() CLASS TGet
if ::oGet:HasFocus
::DispText()
::oGet:Assign() // lkm
endif
::SetPos( ::oGet:Pos )
Return Self
Antonio Linares wrote:This is a fix:
Code: Select all
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
Regards,
Luis