Chip,
At a guess, because after INSERT IN ARRAY, $Columns{$i} is Null rather than {}.
Try
$Columns{$i}:=New object
before the OB SET; or replace it with
$Columns{$i}:= New object (<properties & values>)
Jeremy
> On 3 Oct 2019, at 21:55, Chip Scheide via 4D_Tech <[email protected]>
> wrote:
>
> ok..
> why does this not work???
>
> in a loop
> For ($i;1;$Column_Count)
> INSERT IN ARRAY($Columns;1)
> OB SET($Columns{$i};<properties & values>)
> end for
>
> the first iteration is fine, and the $Columns{1} is assigned the
> correct properties and values.
> However, the second loop results in $Columns{2} containing the
> properties set in that loop, and $Column{1} as undefined; and each
> subsequent loop iteration results in 1 - (N-1) array elements as being
> undefined, and element N being defined with that loop's properties and
> values.
>
> Chip
**********************************************************************
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]
**********************************************************************