18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix: Built-in Scripting Language<br />

StrUpper<br />

Converts a string to all uppercase characters.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrUpper String Synchronous Supported Supported Supported<br />

Syntax<br />

StrUpper( strSource )<br />

strSource<br />

The string.<br />

Returned value<br />

Returns the string with all characters are in uppercase.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag StrUpper( "Studio version 7.0" ) // Returned value = "STUDIO VERSION 6.1"<br />

Tag<br />

ValueToChar<br />

StrUpper( "<strong>Technical</strong> <strong>Reference</strong>" ) // Returned value = "TECHNICAL REFERENCE"<br />

This function converts an integer array of Unicode character codes to a string.<br />

Function Group Execution Windows Embedded Thin Client<br />

ValueToChar String Synchronous Supported Supported Supported<br />

Syntax<br />

ValueToChar("tagArray",numQtdChars)<br />

tagArray<br />

numQtdChars<br />

The name of the integer array containing the values to be converted. If no array index is<br />

specified, then the default is 0.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

The number of values to be converted (minimum of 1), starting with the specifed array index.<br />

Returned value<br />

Returns a string comprising the converted values.<br />

Examples<br />

If Array[0] = 65, Array[1] = 66, and Array[2] = 67, then the returned value will be "ABC":<br />

ValueToChar( "Array", 3 )<br />

Page 568<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!