omron — GetScrInfo

Appendix: Built-in Scripting Language Graphic functions These functions are used to manipulate and print project screens. AutoFormat Automatically formats a real number to a preset number of decimal places, according to the virtual table of settings created by the SetDecimalPoints function. (This is similar to the Format function, except that you do not need to specify the number of decimal places.) Syntax AutoFormat( numValue ) numValue The real number to be formatted. Returned value This function returns a formatted string.

Examples In the following examples, the SetDecimalPoints function has already been used to set 3 decimal places for values greater than equal to 1.5 and 1 decimal place for values less than or equal to −3. GetScrInfo Retrieves information from the project about an open screen. Syntax GetScrInfo( strScreenName , " tagResult ", optNumResultType , optNumID ) strScreenName The name of the screen for which information is required. tagResult The name of the tag that will receive the information retrieved by the function. This name must be enclosed in quotes, or the project will try to get the contents of the tag.

optNumResultType A numeric flag specifying the type of information to be retrieved by the function: Page 538 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client AutoFormat Graphic Synchronous Supported Supported Supported Tag Name Expression Tag AutoFormat( 1.543210 ) // Returned value = "1.543" Tag AutoFormat( #3.123456 ) // Returned value = "−3.1" Function Group Execution Windows Embedded Thin Client GetScrInfo Graphic Synchronous Supported Supported Supported Value Description 0 Default value. Writes the TOP, LEFT, BOTTOM and RIGHT screen coordinates to each consecutive position of the array tag specified by the tagResult parameter.

1 Writes the TOP screen coordinate to the tag specified by the tagResult parameter. 2 Writes the LEFT screen coordinate to the tag specified by the tagResult parameter.