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

WebView.FindWindowByTitle

Returns the Window Reference for a window specified by the Index parameter.

Component: WebView
Version: 1.3
Mac OS X: Yes
Windows: Yes
Server: No
FileMaker Cloud: No

MBS( "WebView.FindWindowByTitle"; Title )

Parameters

Parameter Description Example value
Title The title of the widow "Hello"

Result

Returns window reference number or error.

Description

Returns the Window Reference for a window specified by the Index parameter.
The Window Reference is a unique ID.
The window reference is only valid until the window is closed.

On normal FileMaker on desktop you can use Get(WindowName), but on FileMaker Server the name includes the server name, so you need to use: Get(WindowName) & " (" & Get(HostName) & ")"
If 0 is returned, no window was found.

Examples

Get the Window Reference of the current window

MBS( "WebView.FindWindowByTitle" ; Get(WindowName) )

Find window reference on FileMaker Server where FileMaker includes server name in window name:

MBS( "WebView.FindWindowByTitle"; Get(WindowName) & " (" & Get(HostName) & ")")

See also


WebView.FindWindowByIndex   -   WebView.FormReset

Feedback: Report problem or ask question.




Links
MBS Realbasic Chart Plugins - Nachhilfe in Andernach