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

Syntax<br />

StrCompareNoCase( strValue1, strValue2 )<br />

strValue1<br />

strValue2<br />

A string, or a tag of String type. This is the first string in the comparison.<br />

A string, or a tag of String type. This is the second string in the comparison.<br />

Returned value<br />

−1<br />

The value of strValue1 is less than the value of strValue2.<br />

0 strValue1 and strValue2 are identical.<br />

1 The value of strValue1 is greater than the value of strValue2.<br />

Examples<br />

Tag Name<br />

Expression<br />

Tag StrCompareNoCase( "Text1", "TEXT1" ) // Returned value = 0<br />

Tag Tag1 = "Text1"<br />

Tag2 = "TEXT1"<br />

StrCompareNoCase( Tag1, Tag2 ) // Returned value = 0<br />

StrFromInt<br />

Converts an integer into its string representation in another base number system, such as binary (base-2) or<br />

octal (base-8).<br />

Function Group Execution Windows Embedded Thin Client<br />

StrFromInt String Synchronous Supported Supported Supported<br />

Syntax<br />

StrFromInt( numValue, numBase )<br />

numValue<br />

numBase<br />

The numeric value to be converted into a string.<br />

The base number system to convert into.<br />

Returned value<br />

This function returns a string representation of the given integer, in the specified base number system. The<br />

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

Notes<br />

You can specify a real number instead of an integer, but only the whole part of the number will be converted.<br />

To convert the entire real number, use the StrFromReal function instead.<br />

Also, if you do not need to change the base, then use the Str function instead.<br />

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

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

Saved successfully!

Ooh no, something went wrong!