| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
WebView.SearchText
Searches text in a WebViewer.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| WebView | 2.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "WebView.SearchText"; WebViewerRef; Text { ; Backward; CaseSensitive; Wrap } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| WebViewerRef | Either the Web Viewer Object Name or the Web Viewer ID as returned by "WebView.FindByName" function. | "web" | |
| Text | The text to search for. | "Hello" | |
| Backward | A boolean value to determinate direction. Pass 0 for forward and 1 for backward. Default is 0. |
0 | Optional |
| CaseSensitive | Whether to search case sensitive. Pass 1 for case sensitive and 0 for case insensitive. Default is 0. |
0 | Optional |
| Wrap | A boolean value to decide whether to wrap around. If text is not found, we start search on the top again. Default is 0. |
0 | Optional |
Result
Returns 1 if the text was found and 0 if not.
Description
Searches text in a WebViewer.By default it searches forward, case sensitive and may wrap around.
On Windows not available for WebView2.
Examples
Searches for text in WebViewer:
MBS("WebView.SearchText"; "web"; "Hello")
See also
Release notes
- Version 16.5
- Implemented WebView.SearchText for WebKit 2 on macOS and iOS.
Example Databases
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 29th October 2026
MarkDown version: WebViewSearchText.md