Hi Shakeshuck,
Sorry for the late reply.
The data internally is stored as a float when using a float data type.
However the ListBox doesn't really provide a proper public API to query unset cells.
In fact, assigning the result of a GetData() to a float will crash on a cell with an unset float value.
Something which does happen to work at the moment however is the following:
Code: Select all
float * f = currentRow.GetData(fld);
You can then check whether f is null, and de-reference it if it is non-null to access the float value.
This will not help address the fact that the user would still need to specifically 'clear' the cell, as there is still no built-in mechanism to 'unset' the value. If the user deletes the whole contents of the edit box and try to save, it will leave the previous value in the ListBox cell.
We certainly need to improve on the usability of unset data cells.
Regards,
-Jerome