With a little up front work, you can create a nice wrapper for SELECTION TO
ARRAY/SELECTION RANGE TO ARRAY where you just pass an array of field pointers.
You can use a process 2D array of each type to dynamically allocate/deallocate
the necessary arrays and just manipulate the pointers. Some code fragments
below.
For ($iParam;1;Size of array($aSource))
$aDest{$iParam}:=PM_Variable (ARRAY_Type ($aType{$iParam}))
End for
For ($iParam;1;Size of array($aSource))
SELECTION TO ARRAY($aSource{$iParam}->;$aDest{$iParam}->;*)
End for
SELECTION RANGE TO ARRAY($start;$end)
John DeSoi, Ph.D.
> On Sep 15, 2018, at 2:07 AM, David Adams via 4D_Tech <[email protected]>
> wrote:
>
> What are the trade-offs in V17 between *GOTO SELECTED* record and *SELECTION
> TO ARRAY*? I've been using *SELECTION TO ARRAY*, but it's hard to read,
> write, and maintain.
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************