Function overview
Prototype
#WindowExists (
_WinName )
Parameters
_WinName ny alphanumeric value representing the name of the window you're checking
Description
Tags:
Window Management
Returns true if specified window name exists.
Examples
Sample input
#WindowExists("Contacts")
Sample output
True(1)
Function code
/*----------------------------------
HEADER
------------------------------------
Function Name: #WindowExists()
Description: Returns true if specified window name exists.
Parameters:
_WinName - Any alphanumeric value representing the name of the window you're checking
Result Type: boolean (1, 0)
Recursion: No
Version Number: 1.0
Author: Bill Doerrfeld
Contact: billworld@me.com
------------------------------------
CHANGE LOG
------------------------------------
1.0 Feb 2, 2009 First version
------------------------------------
CODE
------------------------------------*/
Let(
[
$AllWindows = WindowNames(Get(FileName))
];
FilterValues ( $AllWindows ; _WinName ) = _WinName&¶)
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/200
Prototype: #WindowExists( _WinName )
Function Author: Bill Doerrfeld (http://www.fmfunctions.com/mid/149)
Last updated: 03 February 2009
Version: 1
*/
// ===================================
/*----------------------------------__LITBR__ HEADER__LITBR__------------------------------------__LITBR__Function Name: #WindowExists()__LITBR__Description: Returns true if specified window name exists.__LITBR__Parameters: __LITBR__ _WinName - Any alphanumeric value representing the name of the window you're checking__LITBR__Result Type: boolean (1, 0)__LITBR__Recursion: No__LITBR__Version Number: 1.0__LITBR__Author: Bill Doerrfeld__LITBR__Contact: billworld@me.com__LITBR____LITBR__------------------------------------__LITBR__ CHANGE LOG__LITBR__------------------------------------__LITBR__1.0 Feb 2, 2009 First version__LITBR____LITBR__------------------------------------__LITBR__ CODE__LITBR__------------------------------------*/__LITBR____LITBR__Let(__LITBR__[__LITBR__$AllWindows = WindowNames(Get(FileName))__LITBR__];__LITBR____LITBR__FilterValues ( $AllWindows ; _WinName ) = _WinName&¶)__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/200__LITBR____LITBR__ Prototype: #WindowExists( _WinName )__LITBR__ Function Author: Bill Doerrfeld (http://www.fmfunctions.com/mid/149)__LITBR__ Last updated: 03 February 2009__LITBR__ Version: 1__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.