Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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