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  

ListDialog.AddItemToList

Adds a line to the list.

Component Version macOS Windows Linux Server iOS SDK
ListDialog 4.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "ListDialog.AddItemToList"; title { ; tag; Header } )   More

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.
The title text may contain text for multiple columns separated by tab character, e.g. char(9).

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

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 6th April 2021


List.XOrColumn - ListDialog.AddItemsToList

💬 Ask a question or report a problem