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


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


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"


Returns OK or error.


Sets a value in the list.
If index is equal to count, we append the text to the list.


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

This function checks for a license.

Created 21st September 2014, last changed 14th December 2023

QuickList.SetList - QuickList.Shuffle