ListFormat

Method

Sets a format for the List() function

SDK version: 

5.7.0-preview.3 8/14/2026

Product: 

Class: 

Warning

uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.

Syntax

ListFormat(string, string, string, string, string, string, string)

Parameters

Separator
string
Separator
Prefix
string
(Default = "")
Prefix
Postfix
string
(Default = "")
Postfix
UserFunc
string
(Default = "")
UserFunc
Element
string
(Default = "")
Element
Index
string
(Default = "")
Index
Count
string
(Default = "")
Count

Return

String

Remarks

This sets a format that determines how the value of Str() is returned. Separator will be inserted between each match; Prefix will be added before the string; Postfix is appended at the end of the string. UserFunc determines how each match is displayed. Element is the name of the variable to use in the function (x by default). Index is the name of the current match (Index by default). Count is the number of matches (Count by default).

For instance: Given this list of matches: "a", "b", "c", "d" ListOfChars().ListFormat(", ", "{", "}", "$' of :'").Str() would return: {1 of 4:a, 2 of 4:b, 3 of 4:c, 4 of 4:d}

Examples

This page last modified on: 

8/7/2026