WINCLOSE

Usage

TIBCO iProcess Workspace (Windows)

Warning: (iProcess only) This expression is not available to the TIBCO iProcess Script Server Plug-in. Therefore, even though you can successfully enter the expression in your iProcess Script plug-in definition, it will not be processed by the iProcess Engine. It will return SW_NA.

Closes the specified window. You should avoid using this function to close the Tools Window, otherwise there may be undesirable results.

Note: This function is superseded by the more general WINACTION function, but is retained for upward compatibility.

This function cannot be used to close the Form Window. Use the ISWINDOWS function for this purpose.

Syntax

WINCLOSE (title)

where title is a text string specifying all or the first part of the title bar of the application window to close. If there is more than one matching window, the one to be closed will be arbitrarily selected. Matching of the title is case insensitive.

Returns

One of the following numeric values:

Value

Description

0

Success

1

Failure

Example

TIBCO iProcess Modeler:

WINCLOSE ("Microsoft Excel")

TIBCO Business Studio:

IPEEnvironmentUtil.WINCLOSE("Microsoft Excel");