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  

QuickList.AddPrefix

Adds a prefix text to each entry in the list.

Component Version macOS Windows Linux Server iOS SDK
List 6.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "QuickList.AddPrefix"; ListRef { ; Prefix; ReturnNewList } )   More

Parameters

Parameter Description Example Flags
ListRef The reference to the list returned from QuickList.New function. $List
Prefix The text to prepend. "!" Optional
ReturnNewList Pass 1 to return result as new QuickList. This new list must be freed later using QuickList.Free function. Pass 0 (Default) to modify the list in the List1 parameter. 0 Optional

Result

Returns list or error.

Description

Adds a prefix text to each entry in the list.

Examples

Try in one Let statement:

Let([
list = MBS("QuickList.New"; "Hello¶World");
e = MBS("QuickList.AddPrefix"; list; ">");
e = MBS("QuickList.AddPostfix"; list; "<");
r = MBS("QuickList.GetList"; list);
d = MBS("QuickList.Free"; list)
]; r)

See also

Blog Entries

This function checks for a license.

Created 4th March 2016, last changed 14th July 2022


QuickList.AddPostfix - QuickList.AddQuickList

💬 Ask a question or report a problem