Compares two strings to see if they are identitical.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
StrCompare | String | Synchronous | Supported | Supported | Supported |
StrCompare( strValue1, strValue2 )
−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. |
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 |