Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Edge HMI

OpenPrevious

  • Last UpdatedOct 29, 2026
  • 1 minute read

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

Function

Group

Execution

String Exp.

Windows

Windows Embedded

IoT View

Thin Clients

Mobile Access

OpenPrevious

Screen

Asynchronous

No

Supported

Supported

Supported

Supported

Supported

Syntax

OpenPrevious(optNumX1,optNumY1,optNumX2,optNumX2)

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 returns one of the following values:

Value

Description

0

Failure

1

Success

Notes

If the Enforce Web functionality equivalence in local project screens option is selected in the project settings, this function cannot be called in VBScript Global Procedures, VBScript scripts (script groups), or other background tasks. This is because the function behaves differently depending on whether you view project screens locally (that is, on the same computer that hosts the project runtime) or remotely. For more information, see Preferences tab.

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)

In This Topic
Related Links