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 />

Examples<br />

Tag Name<br />

Expression<br />

Tag StrStr( "Studio version 7.0", "i" ) // Returned value = "io version 7.0"<br />

Tag StrStr( "<strong>Technical</strong> <strong>Reference</strong>", "n" ) // Returned value ="nical <strong>Reference</strong>"<br />

StrStrPos<br />

Finds the first occurrence of a character within a string.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrStrPos String Synchronous Supported Supported Supported<br />

Syntax<br />

StrStrPos( strSource, strCharSequence )<br />

strSource<br />

The source string.<br />

strCharSequence<br />

The reference string.<br />

Returned value<br />

Returns an integer corresponding to the first occurrence of a character within the source string.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag StrStrPos( "Studio version 7.0", "i" ) // Returned value = 4<br />

Tag StrStrPos( "<strong>Technical</strong> <strong>Reference</strong>", "a" ) // Returned value = 7<br />

Note: The first character in the string assigned the value 0.<br />

StrTrim<br />

Removes unwanted spaces from a string.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrTrim String Synchronous Supported Supported Supported<br />

Syntax<br />

StrTrim( str<strong>Reference</strong>, optNumFlag )<br />

str<strong>Reference</strong><br />

A string, or a tag of String type that contains the source string.<br />

optNumFlag<br />

An optional integer or tag of Integer type:<br />

Page 566<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!