18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

A string that describes how the custom properties of any generic objects or linked symbols in<br />

the screen will be completed when the screen is opened. This string has the syntax…<br />

#Label:Value<br />

…where Label is the name of the property and Value is the tag, expression or literal value that<br />

the property will receive. You can declare more than one mnemonic as long as the mnemonics<br />

are separated by spaces. For more information, see "Examples" below.<br />

Returned value<br />

This function will return one of the following values:<br />

Value<br />

Description<br />

0 Success<br />

1 Error<br />

Notes<br />

This function cannot be used with Tasks or in the Global Procedures script.<br />

Examples<br />

Open the screen "main" using the default screen size and location:<br />

Open( "main" )<br />

Open the screen at the mouse's current position:<br />

Open( "main", 1 )<br />

Open the screen at the mouse's current position and assign it an ID of 10:<br />

Open( "main", 1, −1, −1, −1, 0, 10)<br />

Open the screen using the default screen size but centered at the coordinates (500,250), and assign it an ID of<br />

10:<br />

Open( "main", 500, 250, 500, 250, 0, 10)<br />

Open the screen using the default screen size and location, and replace the custom properties Mne1 and Mne2<br />

with Tag1 and Tag2, respectively:<br />

Open( "main", −1, −1, −1, −1, 1, 0, "#Mne1:Tag1 #Mne2:Tag2" )<br />

OpenPrevious<br />

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

Function Group Execution Windows Embedded Thin Client<br />

OpenPrevious Screen Asynchronous Supported Supported Not Supported<br />

Syntax<br />

OpenPrevious({ | optNumX1,optNumY1,optNumX2,optNumY2 })<br />

optNumX1<br />

<strong>InduSoft</strong> Web Studio Page 581

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!