I think you can do it with one loop inside another.

ARRAY TEXT(Array1;2)
ARRAY TEXT(Array2;2)

Array1{1}:="s"
Array1{2}:="a"

Array2{1}:="l"
Array2{2}:="o"

ARRAY TEXT(ArraysCombined;0)


For ($i;1;Size of array(Array1))

      For ($j;1;Size of array(Array2))
           $cCombination:=Array1{1}+Array2{$i}+Array1{2}+Array2{$j}
           APPEND TO ARRAY(ArraysCombined;$cCombination)
      End for

End for

Hope this helps
David Samson



> In one 4D application i need to combine two array.
>
> For example i have an array with sone analytes, and another array with
> the available results.
>
> I need to obtain one new array that contain all the possibile
> combinations without repetitions.
>
>
**********************************************************************
4D Internet Users Group (4D iNUG)
New Forum: https://discuss.4D.com
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to