OpenPrevious

OpenPrevious is a built-in scripting function that re-opens the last screen to be closed.

Function Group Execution Windows Embedded Thin Client
OpenPrevious Screen Asynchronous Supported Supported Not Supported

Syntax

OpenPrevious( { | optNumX1,optNumY1,optNumX2,optNumY2 } )
optNumX1
optNumY1
optNumX2
optNumY2
The coordinates, in pixels, for the upper-left (X1,Y1) and lower-right (X2,Y2) corners of the screen.

These are optional parameters. If no values are specified, then the default screen size and location are used. For more information, see Screen Attributes.

Returned value

This function will return one of the following values:
Value Description
0 Success
1 Error

Notes

This function cannot be used with Tasks or in the Global Procedures script.

Examples

Open the previous screen using its default size and location:
OpenPrevious()
Open the previous screen in the top-left corner of the display and sized to 800x600:
OpenPrevious( 0, 0, 800, 600 )