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

Value of<br />

optNumFlag<br />

Description<br />

0 Removes all spaces from both the beginning and the end of the string.<br />

1 Removes all spaces only from the beginning of the string.<br />

2 Removes all spaces only from the end of the string.<br />

3 Removes all spaces except for single spaces between words.<br />

Note: If no value is given for optNumFlag, then 0 is the default.<br />

Returned value<br />

This function returns a string equal to strReferance minus the specified space characters. The returned<br />

value can be stored in any tag of String type.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag StrTrim( " Studio version 7.0 " ) // Returned value = "Studio version 7.0"<br />

Tag StrTrim( " Studio version 7.0 ", 0 ) // Returned value = "Studio version 7.0"<br />

Tag StrTrim( " Studio version 7.0 ", 1 ) // Returned value = "Studio version 7.0 "<br />

Tag StrTrim( " Studio version 7.0 ", 2 ) // Returned value = " Studio version 7.0"<br />

Tag StrTrim( " Studio version 7.0 ", 3 ) // Returned value = "Studio version 7.0"<br />

StrTrimAll<br />

Eliminates a specific char from the whole string.<br />

Function Group Execution Windows Embedded Thin Client<br />

StrTrimAll String Synchronous Supported Supported Supported<br />

Syntax<br />

StrTrimAll( str<strong>Reference</strong>, optStrTrimChar )<br />

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

A The source string.<br />

optStrTrimChar<br />

Char that will be removed from the string. If this parameter is omitted, the space char will be<br />

removed from the string, by default.<br />

Returned value<br />

Returns a string equal to str<strong>Reference</strong> minus the characters removed by the function.<br />

Examples<br />

Tag Name<br />

Tag<br />

Expression<br />

StrTrimAll( "Studio version 7.0 ", " ") // Returned value = "Studioversion7.0"<br />

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

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

Saved successfully!

Ooh no, something went wrong!