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

On Thu, 3 Oct 2019 16:36:05 -0400, Chip Scheide via 4D_Tech wrote:
> it loos like an alternative to Append to Array is:
> 
> array object($Array;0)
> 
> insert in array($array;1) 
> 
> ob set($array{1}; <whatever goes here>)
> 
> Chip
> On Thu, 3 Oct 2019 13:28:24 -0700, Kirk Brooks via 4D_Tech wrote:
>> Chip,
>> 
>> On Thu, Oct 3, 2019 at 1:26 PM Chip Scheide via 4D_Tech <
>> [email protected]> wrote:
>> 
>>> is it possible to use append array with an object array?
>>> 
>> No. But you can with collections.
>> 
>> To accomplish what you are describing you would need to create an object,
>> set the array to the object and then append the object to the object array.
>> 
>> -- 
>> Kirk Brooks
>> San Francisco, CA
>> =======================
>> 
>> What can be said, can be said clearly,
>> and what you can’t say, you should shut up about
>> 
>> *Wittgenstein and the Computer *
>> **********************************************************************
>> 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]
>> **********************************************************************
> ---------------
> Gas is for washing parts
> Alcohol is for drinkin'
> Nitromethane is for racing 
> **********************************************************************
> 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]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
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]
**********************************************************************

Reply via email to