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

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.Free"; $list)]

See also

Created 21st September 2014, last changed 19th August 2020


QuickList.SetList - QuickList.Sort

Feedback: Report problem or ask question.




Links
MBS FileMaker blog

Start Chat