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

AVEVA™ InTouch HMI

StringMid() 関数

  • Last UpdatedFeb 05, 2018
  • 1 minute read

文字列の一部を返します。開始点および返す文字数を指定できます。

構文

result = StringMid (string, startpos, length)

パラメータ

string

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

startpos

文字列の開始位置です。リテラル数、アナログ型タグ変数、または数式です。

length

返す文字数です。リテラル数、アナログ型タグ変数、または数式です。

StringMid("Hello World",5,4) は "o Wo" を返します。

StringMid("Hello World",7,50) は "World" を返します。

StringMid("Hello World",4,0) は "lo World" を返します。

注意:長さ 0 を StringMid() 関数に渡すと、開始位置からの文字列全体が返されます。

In This Topic