StrCompare
Compares two strings to see if they are identitical.
Function
| Group
| Execution
| Windows
| Embedded
| Thin Client
| Mobile Access
|
StrCompare | String
| Synchronous
| Supported
| Supported
| Supported
| Supported
|
Syntax
StrCompare( strValue1, strValue2 )
- strValue1
- A string, or a tag of String type. This is the first string in the comparison.
- strValue2
- A string, or a tag of String type. This is the second string in the comparison.
Returned value
−1
| The value of strValue1 is less than the value of strValue2.
|
0
| strValue1 and strValue2 are identical.
|
1
| The value of strValue1 is greater than the value of strValue2.
|
Examples
Tag Name
| Expression
|
Tag
| StrCompare( “Text1″, “Text2″ ) // Returned value = −1
|
Tag
Tag1 = “Text” Tag2 = “Text”
| StrCompare( Tag1, Tag2 ) // Returned value = 0
|
Tag Tag1 = “Text1″ Tag2 = “Text2″
| StrCompare( Tag1, Tag2 ) // Returned value = −1
|
StrCompare