Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
QuickList.SetValue
Sets a value in the list.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "QuickList.SetValue"; ListRef; Index; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
ListRef | The reference to the list returned from QuickList.New function. | $List |
Index | The index of the value to get. Must be in range from 0 to QuickList.Count-1. | $index |
Text | The text to add. | "Hello" |
Result
Returns OK or error.
Description
Sets a value in the list.If index is equal to count, we append the text to the list.
Examples
Tries set value:
Set Variable [$list; Value: MBS( "QuickList.New"; "Hello¶World¶Test" )]
Set Variable [$r; Value: MBS( "QuickList.SetValue"; $list; 0; "Element 0" )]
Show Custom Dialog ["List contains"; MBS( "QuickList.GetList"; $list)]
Set Variable[$r; Value: MBS( "QuickList.Release"; $list)]
See also
- QuickList.AddValue
- QuickList.Count
- QuickList.GetList
- QuickList.HasValues
- QuickList.New
- QuickList.Release
- QuickList.RemoveValue
- QuickList.Serialize
- QuickList.SetList
- QuickList.Shuffle
This function checks for a license.
Created 21st September 2014, last changed 14th December 2023