Hi everybody,
In a form with the mover listboxes I have a strange behavior. In the Save code we first delete all rows and then go through all items in the selected items list and add them back. This seems to work OK except for the case when I remove all items (nothing is selected). In this case Save seems to be doing nothing. However, if I attempt to trace the code, it works fine and I end up with empty table (as it should be).
Do you see what may be the problem?
Thanks in advance.
UPDATE. Found the solution. The table was at EOF() and GetFldState was returning NULL which was not checked in the class code. I added code to go top if the table is at EOF and this resolved the issue.
If it's not broken, fix it until it is.
My Blog