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

Returns a list with values which are contained in both lists.

Component Version macOS Windows Linux Server iOS SDK
List 4.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "QuickList.And"; List1; List2 { ; ReturnNewList } )   More

Parameters

Parameter Description Example Flags
List1 The reference to the first quicklist. $List1
List2 The reference to the second quicklist. $List2
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 List1 parameter. 0 Optional

Result

Returns list, OK or error.

Description

Returns a list with values which are contained in both lists.
Performs a logical AND operation.

Examples

Performs And on two quicklists:

$list1 = MBS( "QuickList.New"; "a¶b¶c¶d")
$list2 = MBS( "QuickList.New"; "a¶d")
$list3 = MBS( "QuickList.And"; $list1; $list2; 1 )
$list = MBS( "QuickList.GetList"; $list3)
$r = MBS("QuickList.Free"; $list1)
$r = MBS("QuickList.Free"; $list2)
$r = MBS("QuickList.Free"; $list3)

See also

Release notes

Blog Entries

Created 8th October 2014, last changed 8th October 2014


QuickList.AddValue - QuickList.AndColumn

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins

Start Chat