omron — OpenPrevious

Appendix: Built-in Scripting Language Notes This function cannot be used with Tasks or in the Global Procedures script. Examples Open the screen "main" using the default screen size and location: Open( "main" ) Open the screen at the mouse's current position: Open( "main", 1 ) Open the screen at the mouse's current position and assign it an ID of 10: Open( "main", 1, #1, #1, #1, 0, 10) Open the screen using the default screen size but centered at the coordinates (500,250), and assign it an ID of 10: Open( "main", 500, 250, 500, 250, 0, 10) Open the screen using the default screen size and location, and replace the custom properties Mne1 and Mne2 with Tag1 and Tag2 , respectively:

Open( "main", #1, #1, #1, #1, 1, 0, "#Mne1:Tag1 #Mne2:Tag2" ) OpenPrevious OpenPrevious is a built-in scripting function that re-opens the last screen to be closed. 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: 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 ) Page 488 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client OpenPrevious Screen Asynchronous Supported Supported Not Supported Value Description 0 Success 1 Error