Can you please try this fix and offer your comments?
Please locate this line of code in Adjust() method of TXBrwColumn. You will find it in two places.
- Code: Select all Expand view
::bStrData := { || XbrLbxLookUp( ::Value, ::aEditListBound, ::aEditListTxt ) }
Change this line as:
- Code: Select all Expand view
::bStrData := { || XbrLbxLookUp( ::Value, ::aEditListBound, ::aEditListTxt, ::nEditType == EDIT_LISTBOX ) }
You need to change this at two places.
Next:
Please locate:
- Code: Select all Expand view
static function XbrLbxLookUp( uVal, aBound, aText )
Change this line as:
- Code: Select all Expand view
static function XbrLbxLookUp( uVal, aBound, aText, lBlank )
In this function, please locate this line:
- Code: Select all Expand view
uRetVal := Blank( aText[ 1 ] )
Change this as:
- Code: Select all Expand view
DEFAULT lBlank := .t.
uRetVal := If( lBlank, Blank( aText[ 1 ] ), cValToChar( uVal ) )
In case your problem is still not addressed by this change, please provide a small sample to reproduce the problem.