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

AVEVA™ InTouch HMI

StringToIntg()

  • Last UpdatedOct 08, 2024
  • 1 minute read

文字列の数値を整数値に変換し、結果を返します。

カテゴリ

文字列

構文

IntegerResult = StringLen( Text );

パラメータ

テキスト

操作する文字列。実際の文字列または文字列属性。

備考

このステートメントが評価されると、文字列の最初の文字で数値が読み取られます。最初の文字が数値でない場合、文字列の値はゼロ(0)になります。空白スペースは無視されます。最初の文字が数値である場合、数値以外の値が検出されるまで後続の文字が読み取られます。

StringToIntg("ABCD"); ' 戻り値 0;

StringToIntg("22.2 is the Value"); ' 戻り値 22 (since integers are whole numbers);

StringToIntg("The Value is 22"); ' 戻り値 0;

次もご確認ください。

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()関数

StringFromTime()関数StringFromTime()

StringInString()関数StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

</StringReplace>

StringRight()

StringSpace()

StringTest()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links