Close is a built-in scripting function that closes an open project screen.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
Close | Screen | Asynchronous | Supported | Supported | Supported |
This is an optional parameter. If no value is specified, then the default ID is 0.
This function does not return any value.
This function cannot be used with Tasks or in the Global Procedures script.
Also, in some cases, you do not need to call this function to close a screen because the screen will be closed automatically when another screen replaces it. For more information, see Screen Attributes.
Close( "main" )
Close( "alarms" )
Close( "main", 10 )