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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
ListDialog.AddItemToList
Adds a line to the list.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| ListDialog | 4.2 | Yes | Yes | No | No | No |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| title | The title to show. | "Hello World" | |
| tag | The tag, e.g. the record ID. | "1234" | Optional |
| Header | Pass 1 to make this an header item, which is shown differently. | 1 | Optional |
Result
Returns OK.
Description
Adds a line to the list.Examples
Clears list and adds three lines:
MBS( "ListDialog.ClearList" )
MBS( "ListDialog.AddItemToList"; "Bob"; 1 )
MBS( "ListDialog.AddItemToList"; "Joe"; 2 )
MBS( "ListDialog.AddItemToList"; "Tim"; 3 )
Use two columns and fill an item to the list:
Set Variable [ $r ; Value: MBS("ListDialog.SetColumnCount"; 2) ]
Set Variable [ $r ; Value: MBS("ListDialog.AddItemToList"; "1st Column" & Char(9) & "2nd Column"; "Tag123") ]
See also
- List.HasValue
- ListDialog.AddItemsToList
- ListDialog.ClearList
- ListDialog.SetColumnCount
- ListDialog.ShowDialog
Example Databases
Blog Entries
Created 18th August 2014, last changed 27th November 2020
List.XOrColumn - ListDialog.AddItemsToList
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins