That only works if array size is 2
On Fri, May 28, 2021 at 7:50 AM David Samson via 4D_Tech <[email protected]> wrote: > > 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] > ********************************************************************** -- ----------------------------------------------------------------------------------------- Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064 Informed Solutions, Inc. Brookline, MA 02446 USA Registered 4D Developer Providers of 4D, Sybase & SQL Server connectivity https://www.informed-solutions.com ----------------------------------------------------------------------------------------- This message and any attached documents contain information which may be confidential, subject to privilege or exempt from disclosure under applicable law. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. ********************************************************************** 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] **********************************************************************

