Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

QuickList.MatchesSubString

Finds list entries which contains a given text.

Component: List
Version: 6.0
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "QuickList.MatchesSubString"; ListRef; Text { ; Flags } )

Parameters

Parameter Description Example value
ListRef The reference to the list returned from QuickList.New function. $List
Text The text to find. "Hello"
Flags Optional
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.
Add 2 to split. This is only useful with first option together (so pass 3 for both). Matching entries will be in new list and non matching entries will stay in old list.
Add 4 to reverse operation (NOT).
0

Result

Returns OK, list or error.

Description

Finds list entries which contains a given text.
Comparison is case insensitive. (currently case sensitive on Windows)

Examples

Split a list matching substring:

Set Variable [$list; Value:MBS( "QuickList.New"; "Hello¶World¶auto" )]
Set Variable [$matchesList; Value:MBS( "QuickList.MatchesSubString"; $list; "orl"; 3)]
Set Variable [$text1; Value:MBS( "QuickList.GetList"; $list)]
Set Variable [$text2; Value:MBS( "QuickList.GetList"; $matchesList)]
Set Variable [$r; Value:MBS( "QuickList.Free"; $list )]
Set Variable [$r; Value:MBS( "QuickList.Free"; $matchesList )]
Show Custom Dialog ["Result"; "Matches: " & $text1 & ¶ & "Others: " & $text2]

See also


QuickList.MatchesPrefix   -   QuickList.New

Feedback: Report problem or ask question.




Links
MBS Real Studio Chart Plugins - Pfarrgemeinde Ministranten Nickenich