Error in blocks? Please help

Hi I have created a simple application in which data from a pressure gauge is recorded. The application works correctly until you delete the selection. The selection is deleted in the application, but the data is back when the application is restarted. Please help me find where I made a mistake. Thanks for help

I guess there is an error in your index variable. So a wrong item get deleted instead of your selection.
If you want to remove your selction from your TLakomer list why don’t you just take
Unbenannt

I replaced the global Index with the List_View1.Selection Index, but no changes. After restarting applications are deleted data restoredblocks

Do It Result: ok