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.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Adds entries to the list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
ListDialog | 4.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
titles | The titles to add. | "Hello World" | |
tags | The tags, e.g. the record ID. | "1234" | Optional |
Returns number of items.
Add two items
MBS( "ListDialog.AddItemsToList"; "Hello¶World" )
Add header with two items
MBS( "ListDialog.AddItemsToList"; "Names¶Steve¶Joe¶Geoff"; "#¶1¶2¶3" )
Take two lists to fill two columns in a list dialog:
MBS("ListDialog.AddItemsToList"; MBS( "List.CrossProduct"; ListDialog::Text1; ListDialog::Text2; ""; Char(9); ""; 2))
Query field 1 and field 2 merged together with tab character for adding to a list:
MBS( "FM.ExecuteFileSQL"; ""; "SELECT (\"Field1\" + Chr(9) + \"Field2\") FROM MyTable")
Shows a list to pick an item from three items:
Set Variable [$r; Value:MBS("ListDialog.ClearList")]
Set Variable [$r; Value:MBS("ListDialog.SetPrompt"; "Please select an item:")]
Set Variable [$r; Value:MBS("ListDialog.AddItemsToList"; "ein¶zwei¶drei")]
Set Variable [$r; Value:MBS("ListDialog.ShowDialog")]
Set Field [ListDialog::Result; $r]
Set Field [ListDialog::Selected; MBS("ListDialog.GetSelectedTitle")]
This function checks for a license.
Created 18th August 2014, last changed 9th March 2023