Listbox.EditCell Disappearing Text Gotcha

SUMMARY: In Windows, cell editing doesn’t work unless you return FALSE from CellClick. This is different to 2012 r2.


If you enable cell editing in a listbox by adding this to listbox.CellClick

me.CellType(row, column) = ListBox.TypeEditableTextArea
Me.EditCell(row, column)

Be sure you also add

return True

Otherwise under Windows, in Xojo 2031 r1 or above the cell will be emptied before editing effectively deleting the cell’s contents.