Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
QuickList.MatchesPostfix
Finds list entries which have a given postfix text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
List | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "QuickList.MatchesPostfix"; ListRef; Text { ; Flags } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
ListRef | The reference to the list returned from QuickList.New function. | $List | |
Text | The text to find. | "Hello" | |
Flags | Pass 1 to return result as new QuickList. his new list must be freed later using QuickList.Release 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 | Optional |
Result
Returns OK, list or error.
Description
Finds list entries which have a given postfix text.Comparison is case insensitive.
Examples
Finds list entries with same postfixes:
Set Variable [$list; Value:MBS( "QuickList.New"; "Hello¶World¶auto" )]
Set Variable [$matchesList; Value:MBS( "QuickList.MatchesPostfix"; $list; "o"; 0)]
Set Variable [$text; Value:MBS( "QuickList.GetList"; $list)]
Set Variable [$r; Value:MBS( "QuickList.Release"; $list )]
Show Custom Dialog ["result"; $text]
See also
- List.MatchesPostfix
- QuickList.GetList
- QuickList.MatchesPrefix
- QuickList.MatchesSubString
- QuickList.New
- QuickList.Release
- QuickList.RemovePostfix
Blog Entries
This function checks for a license.
Created 20th November 2015, last changed 14th December 2023