Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Queries the list of FileMaker windows.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Window | 3.3 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
Parameter | Description | Example | Flags |
---|---|---|---|
Flags | Available in MBS FileMaker Plugin 14.1 or newer. Pass sum of the flags you like to use. 1: return names instead of IDs. 2: filter to only FileMaker document windows. 4: filter to only return visible windows. |
1+2 | Optional |
Returns the list of window references.
Find all visible windows and return list of titles:
While(
[
names = "";
list = MBS( "Window.List" );
count = ValueCount(list);
index = 1
] ;
index ≤ count ;
[
WindowID = GetValue(list; index);
WindowVisible = MBS("Window.IsVisible"; WindowID);
WindowTitle = MBS( "Window.GetTitle"; WindowID);
names = names & If(WindowVisible; WindowTitle & ¶; "");
index = index + 1
] ;
// return all the titles of visible windows
names )
All window IDs:
MBS( "Window.List"; 0)
All visible window names:
MBS( "Window.List"; 1+4)
All visible database windows:
MBS( "Window.List"; 1+2+4)
This function is free to use.
Created 18th August 2014, last changed 23th February 2024