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.GetColumn

Queries a column from each line in a list.

Component Version macOS Windows Linux Server iOS SDK
QuickList 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "QuickList.GetColumn"; List; Separator; Column { ; ReturnNewList } )   More

Parameters

Parameter Description Example Flags
List The reference to the quicklist. $List
Separator The separator text.
Can be multiple characters.
For tab separated text, pass Char(9). For CSV separated text, pass ";" or ",".
Char(9)
Column The index of the column to compare.
Starts with 0 for first column.
0
ReturnNewList Pass 1 to return result as new QuickList.
This new list must be freed later using QuickList.Free function. Pass 0 (Default) to modify the list in the List parameter.
0 Optional

Result

Returns list, OK or error.

Description

Queries a column from each line in a list.

Examples

Try it:

Let ([
// new list
list = MBS("QuickList.New"; "Hello,123,abc¶World,456,def");
// query the column and copy to new list
col = MBS( "QuickList.GetColumn"; list; ","; 1; 1);
// now get text from list
r = MBS( "QuickList.GetList"; col);
// and free both lists
f = MBS( "QuickList.Free"; list);
f = MBS( "QuickList.Free"; col)
]; r )

Example result:
123
456

See also

Release notes

  • Version 11.3
    • Added List.GetColumn and QuickList.GetColumn functions to extract a column from a list.

Blog Entries

Created 2nd June 2021, last changed 2nd June 2021


QuickList.Free - QuickList.GetList

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins

Start Chat