* source/rtl/tget.prg

! Fix and more compliant in Untransform(), PutMask() and KillFocus()
      methods.
This commit is contained in:
Walter Negro
2002-07-14 16:46:45 +00:00
parent d96f38ba28
commit 294547aa42

View File

@@ -494,7 +494,9 @@ return Self
METHOD KillFocus() CLASS Get
::Assign()
if ::lEdit
::Assign()
endif
::hasfocus := .f.
::buffer := ::PutMask( )
@@ -540,9 +542,11 @@ METHOD Untransform( cBuffer ) CLASS Get
DEFAULT cBuffer TO ::buffer
/*
if !::lEdit
return ::VarGet()
endif
*/
do case
case ::type == "C"
@@ -1144,15 +1148,8 @@ METHOD PutMask( xValue, lEdit ) CLASS Get
endif
endif
if ::type == "C" .and. ValType( ::Original ) == "C"
for nFor := 1 to ::nMaxLen
if !::IsEditable( nFor )
nNoEditable++
else
nNoEditable := 0
endif
next
cBuffer += SubStr( ::Original, ::nMaxLen - nNoEditable + 1 )
if ::type == "C"
cBuffer += SubStr( ::VarGet(), ::nMaxLen + 1 )
endif
if ::type == "N"