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

If StrTag = "Studio", then Array[0] = 29779 ("St"), Array[1] = 25717 ("ud"), and Array[2] = 28521 ("io"):<br />

CharToValue( "StrTag", "Array" )<br />

If StrTag = "Studio", then Array[10] = 29779 ("St"), Array[11] = 25717 ("ud"), and Array[12] = 28521 ("io"):<br />

CharToValue( "StrTag", "Array[10]" )<br />

ClassMembersToStrVector<br />

Transfers values from a Class tag to an Array tag.<br />

Function Group Execution Windows Embedded Thin Client<br />

ClassMembersToStrVector<br />

String Synchronous Supported Supported Supported<br />

Syntax<br />

ClassMembersToStrVector( "strClassTag" , numStartPos, numNumPos,<br />

"strArrayTag", optBooStartPosTarget )<br />

strClassTag<br />

String value containing the Class tag name.<br />

numStartPos<br />

Start position (array index) of strClassTag.<br />

numNumPos<br />

Number of positions (array indexes) to be transferred from strClassTag.<br />

strArrayTag<br />

String value containing the array tag that will receive the values from strClassTag.<br />

optBooStartPosTarget<br />

Start position (array index) of strArrayTag. If omitted, the default value 1 is used.<br />

Returned value<br />

−6<br />

−5<br />

−4<br />

−3<br />

−2<br />

−1<br />

Array size of strClassTag is not big enough for numStartPos<br />

strClassTag is not a Class tag<br />

strClassTag is not found<br />

strArrayTag is not found<br />

Invalid data type of the parameters<br />

Invalid number of parameters<br />

0 Transferred successfully<br />

Notes<br />

If strClassTag has more than one member, the value of each member will be transferred to strArrayTag.<br />

Therefore, it is importatnt to make sure that the array size of strArrayTag is big enough to receive all values<br />

from strClassTag.<br />

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

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

Saved successfully!

Ooh no, something went wrong!