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.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

List.SetValue

Sets a value in the list.

Component Version macOS Windows Linux Server iOS SDK
List 7.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "List.SetValue"; List; Index; Text )   More

Parameters

Parameter Description Example
List The list to process. "Hello" ¶ "" ¶ "World"
Index The index of the value to set.
Must be in range from 0 to ValueCount(List).
$index
Text The text to add. "Hello"

Result

Returns list or error.

Description

Sets a value in the list.
If index is equal to count, we append the text to the list.
For big lists, using QuickList functions is much faster. The list is only parsed once and stored in memory.

See also

Release notes

Created 11st March 2017, last changed 29th March 2019


List.Serialize - List.Sort

Feedback: Report problem or ask question.