Edit Table Problem (OpenInsight 32-bit Specific)
At 17 JUN 2003 07:09:36AM Dave Berkovsky wrote:
I have an Edittable that consists of several database bound columns and one symbolic that is calculated based on three other columns in editable. I am trying to remove blank row in LOSTFOCUS event.
Function LostFocus(CtrlEntId,CtrlClassId,Flag,FocusId)
success=ETMethod (CtrlEntId, "TRIM", "", "")Forward_Event()RETURN 0
If I insert blank row and tab out from edittable once everything
seems to work fine. Empty row is removed, but if I do it twice, what is happening is empty row is removed but calculated column is not
shifting up with the rest. Does anyone have any an idea what am I doing wrong?
TIA
Dave
Dave
At 17 JUN 2003 08:54AM Richard Richter wrote:
Dave,
It's my experience that at least one of the columns is never null. Therefore, if I read through that column and get a null property, I delete the line using the delete statment for each column.
So, I read the non-null (is that a word? column and count the value marks + 1. I then do a for next and if the column data is null use the delete command to delete the row completely.
It works for me all the time. I hope this helps.
Richard Richter