There is a mismatch of value in _GridEx_GetCellValue function where all cItemCell is character type due C function LISTVIEW_GETITEMTEXT.
In order to get the right value of CHECKBOX return (actually wrongly returning NIL), I suggest to replace this:
Code: Select all
IF ALLTRIM(HMG_UPPER(cItemCell)) == ALLTRIM(HMG_UPPER(ALABELS [1]))
xData := .T.
ELSEIF ALLTRIM(HMG_UPPER(cItemCell)) == ALLTRIM(HMG_UPPER(ALABELS [2]))
xData := .F.
ENDIF
Code: Select all
ELSEIF AEC == 'CHECKBOX'
IF ALLTRIM(HMG_UPPER(cItemCell)) == ".T."
xData := .T.
ELSE
xData := .F.
ENDIF
ENDIF
I hope to had been helfully.