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

StrGetElement<br />

Gets a specific element from a string source.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrGetElement String Synchronous Supported Supported Supported<br />

Syntax<br />

StrGetElement( strSource, strDelimiter, numElementNumber )<br />

strSource<br />

strDelimiter<br />

The source string.<br />

Char used as delimiter between the elements.<br />

numElementNumber<br />

Number of the element which will be returned by the function. The first element has the number<br />

1. The second element has the number 2 and so forth.<br />

Returned value<br />

Returns the element (string value) retrieved from strSource.<br />

Examples<br />

Tag Name<br />

Tag<br />

Tag<br />

Expression<br />

StrGetElement( "a|b|c", "|", 2 ) // returned value = "b"<br />

StrGetElement( "a,b,c", ",", 3 ) // returned value = "c"<br />

StrLeft<br />

Copies the first characters of a larger string.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrLeft String Synchronous Supported Supported Supported<br />

Syntax<br />

StrLeft( strSource, numQtdChar )<br />

strSource<br />

The source string.<br />

numQtdChar<br />

The number of characters to be copied.<br />

Returned value<br />

Returns a string containing the left-most characters in the source string.<br />

Page 562<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!