Ferdinando,
Copy array works fine with 2D arrays if you want $B to be - a copy - of $A.
But it sounds like you need to _append_ the elements.
You can also use COPY ARRAY on specific arrays within the 2D array.
Example:
$A has 4 'arrays' with some number of elements in each array. I have $C
that I want to copy to $A{2}:
COPY ARRAY($C;$A{2})
This is equivalent to
ARRAY TEXT($A{2}:Size of array($C)) ` assuming text arrays
For($i;1;
Size of array($C)
)
$A{2}{$i}:=$C{$i}
End for
On Mon, Dec 4, 2017 at 9:35 AM, stardata.info via 4D_Tech <
[email protected]> wrote:
> Hi,
>
> I need to append one array into another array with the same coloumns.
>
> Copy not think that work.
>
> I need to use 4D V12...
>
> Thanks
>
> /Ferdinando/
>
>
> Il 04/12/2017 18:13, [email protected] ha scritto:
>
>> Message: 10
>> Date: Mon, 4 Dec 2017 17:29:29 +0100
>> From: Arnaud de Montard<[email protected]>
>> To: 4D iNug Technical<[email protected]>
>> Subject: Re: Assign multidimensional array
>> Message-ID:<[email protected]>
>> Content-Type: text/plain; charset=utf-8
>>
>>
>>
>> Le 4 déc. 2017 à 15:59, Chip Scheide via 4D_Tech<[email protected]>
>>> a écrit :
>>>
>>> Ferdinando,
>>> not sure if Copy Array will copy multi-dimensional arrays - you could
>>> try.
>>>
>> ARRAY TEXT($zz;2;3)
>> $zz{0}{0}:="test"
>> ARRAY TEXT($zzz;0;0)
>> COPY ARRAY($zz;$zzz)
>> ASSERT($zzz{0}{0}="test") //0 index value
>> ASSERT(Size of array($zzz{2})=3) //lines
>> ASSERT(Size of array($zzz)=2) //columns
>>
>> it works:-)
>> -- Arnaud de Montard
>>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ: http://lists.4d.com/faqnug.html
> Archive: http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
>
--
Kirk Brooks
San Francisco, CA
=======================
*The only thing necessary for the triumph of evil is for good men to do
nothing.*
*- Edmund Burke*
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************