Sort messes up Listbox selection when in a transaction

2019-01-23 Thread Pat Bensky via 4D_Tech
Using v17r3, Mac: I have a listbox that displays a selection of records from the [ListItems] table, which are related to a record in the [Lists] table. User can select an item in the list and click the Delete button to delete a [ListItem] record. The code that runs: *USE SET*("ListboxSet0") *DEL

Re: Sort messes up Listbox selection when in a transaction

2019-01-25 Thread Chip Scheide via 4D_Tech
Pat, I'm not using v17 - so i can't help directly, but How about doing this instead - should be faster On load of form (or change of content of listbox) create a set - "listbox_display" on delete use set (listbox selection set) delete selection use set("listbox_display") // no query needed So