I tried with three different computer (three OSes too):
- Windows 7 (or 10 ?)
- Snow Leopard i7 laptop
- El Capitan i5 laptop
The application was compiled with Xojo 2015r1.
The trouble ?
I was unable to find a duplicate Record with “Joël” (from the ListBox). I searched it manually.
Back at Home, with Xojo running the project I was able to find it…
So, I add a new Record using my name and only ASCII characters (I hope).
The record was added.
The data base can be read too as I displayed it into a ListBox.
In the original code, I do not cleared the window contents *, I add code to do that (after then) before the DELETE …/… WHERE ID=value.
In the original code (a Method), I add System.DebugLog everywhere in case something goes wrong: nothing goes wrong, the code goes until db.Commit.
I add a Breakpoint to follow the code in the debugger: everything is correct.
I clicked in the Close button and the ListBox is populated again: my Record is still here.
The boot was fresh. No active Internet.
Of course, the code was not changed since 2013.
That PC is running a fresh Windows and started to have troubles some months ago. I declared the Ant-virus faultive “only if the MacBook Pro does not behave the same”. The Customer’s MacBook Pro shared the same bug.
- I noticed that sometimes if I read the next Record, the Previous Record, the card disappears (mileage may vary; waiting some seconds after the window that allows Add, Delete, Modify appears).
The FolderItem is Valid
The db Class is not Nil
Connect is OK
No error in SQLExecute
DB.Commit is executed.
The Record is still here.
Just in case you want to know, here’s the command line:
DB.SQLExecute("DELETE FROM Caritas WHERE ID=" + Str(App.gUniqueID))
Do you have an idea ?