Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

StringCompare() 関数

  • Last UpdatedJan 15, 2020
  • 1 minute read

2 つの文字列をそれぞれ比較して、ブール値の結果を返します(0 = 文字列は同じです)。各文字の大文字と小文字は区別されるので、たとえば “A” と “a” は別の文字とみなされます。

構文

result = StringCompare (string1, string2)

パラメータ

string1

リテラル文字列、メッセージ型タグ変数、または文字列式です。

string2

リテラル文字列、メッセージ型タグ変数、または文字列式です。

StringCompare ("Apple","Apple") は 0 を返します。

StringCompare ("Apple","apple") は 1 を返します。

この文字列は、2 つのメッセージ型タグ変数を比較して、論理値結果(0 または 1)を返します。

StringCompare (mtag1, mtag2)

In This Topic
Related Links