Aloha Carl and Keith!
Thanks! That’s just what I needed. I see both options will work. The key is the
LONGINT ARRAY FROM SELECTION and/or BOOLEAN ARRAY FROM SET. Much appreciated.
Sannyasin Siddhanathaswami
On Jul 3, 2019, 11:16 AM -1000, Carl Aage Wangel via 4D_Tech
<4d_tech@lists.4d.com>, wro
Here is a version with all the parts in the right place, although it seems like
Carl's example from the manual, searching a boolean array, would be faster.
LONGINT ARRAY FROM SELECTION($tablePtr->;$aBefore)
USE SET($highlightSet)
LONGINT ARRAY FROM SELECTION($tablePtr->;$aAfter)
DELETE SELECTION
d.com>
>Subject: Deleting a record from a listbox
>Message-ID: <266d3f59-1b50-45a1-8145-7add78ddcc84@Spark>
>Content-Type: text/plain; charset="utf-8"
>I’m trying to update my "delete selection of records from a listbox" code. I’m
>trying to keep the s
Sorry, I meant delete from the Before array. This is untested, but should show
the idea.
LONGINT ARRAY FROM SELECTION($tablePtr->;$aBefore)
USE SET($highlightSet)
LONGINT ARRAY FROM SELECTION($tablePtr->;$aAfter)
DELETE SELECTION($tablePtr->)
$size:=Size of array($aBefore)
For ($i;$size;1;-1)
I recall there being a bit more work in between these two lines, but LONGINT
ARRAY FROM SELECTION will create ordered arrays representing the records.
Then delete the missing records from the after array, and used CREATE SELECTION
FROM ARRAY to get the new selection.
Keith - CDI
> On Jul 3, 201
if the sort is based on the listbox headers then the solutions to
determine which header the listbox is sorted on, and then resort using
the same header.
if you sort the listbox some other way, and can track the sort criteria
then you could use that to re-sort after deleting.
I can't be of mor
Aloha,
I’m trying to update my "delete selection of records from a listbox" code. I’m
trying to keep the sort order so that when someone clicks to delete, the only
thing they see is the lines they select, get deleted.
Here’s the basic code. Of course, deleting a record in this scenario, leaves
7 matches
Mail list logo