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

Examples<br />

Tag Name<br />

Expression<br />

Tag ClassMembersToStrVector( "Classtag", 5, 3, "Arraytag" )<br />

Tag ClassMembersToStrVector( "Classtag", 5, 3, "Arraytag", 0 )<br />

Tag ClassMembersToStrVector ( TagName, 0, 1, ArrayName )<br />

NCopy<br />

Copies a defined section of a larger string.<br />

Function Group Execution Windows Embedded Thin Client<br />

NCopy String Synchronous Supported Supported Supported<br />

Syntax<br />

NCopy( strSource, numStartChar, numQtdChar )<br />

strSource<br />

The source string.<br />

numStartChar<br />

Integer tag containing a number corresponding to the first character being copied.<br />

numQtdChar<br />

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

Returned value<br />

Returns a string that is part of the source string (as defined by the function).<br />

Examples<br />

Tag Name<br />

Tag<br />

Tag<br />

Expression<br />

NCopy( "Studio version 7.0", 7, 7 ) // Returned value = "version"<br />

NCopy( "<strong>Technical</strong> <strong>Reference</strong>", 0, 9 ) // Returned value = "<strong>Technical</strong>"<br />

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

Num<br />

Converts a string into a float.<br />

Function Group Execution Windows Embedded Thin Client<br />

Num String Synchronous Supported Supported Supported<br />

Syntax<br />

Num( strValue )<br />

strValue<br />

The number of characters to be converted into float format.<br />

Page 556<br />

<strong>InduSoft</strong> Web Studio

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

Saved successfully!

Ooh no, something went wrong!