Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Creates the cross product from two lists.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
List1 | The first list to process. | "Hello¶World" | |
List2 | The second list to process. | "1¶2" | |
Prefix | The prefix to use | Optional | |
Midfix | The middle to use. This text is put between texts from both lists. |
Optional | |
Postfix | The postfix to use | Optional | |
Flags | Pass 1 to have no extra newline character on the end of the returned list. Default is 0 to include one to easily concat lists. Add 2 for a diagonal cross, so we combine each element of first list with the same element index from the second list. |
1 | Optional |
Returns list or error.
Test with all parameters:
MBS( "List.CrossProduct"; "Hello¶World"; "1¶2"; "before"; "middle"; "after" )
Combine elements from lists:
MBS( "List.CrossProduct"; "Hello¶World"; "1¶2"; "before"; "middle"; "after"; 2 )
Take two lists to fill two columns in a list dialog:
MBS("ListDialog.AddItemsToList"; MBS( "List.CrossProduct"; ListDialog::Text1; ListDialog::Text2; ""; Char(9); ""; 2))
This function checks for a license.
Created 4th March 2016, last changed 10th December 2020