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

AVEVA™ InTouch HMI

StringLen()

  • Last UpdatedSep 24, 2024
  • 1 minute read

返回字符串中的字符数。

类别

字符串型

语法

IntegerResult = StringLen( Text );

参数

文本

实际字符串或字符串属性。

附注

字符串属性中的所有字符都会计算在内,包括空格以及正常情况下不会显示在屏幕上的内容。

示例

StringLen("Twelve percent") ‘ 返回 14;

StringLen("12%") ‘ 返回 3;

StringLen("The end." + StringChar(13)) ' 返回 9;

回车符是 ASCII 13 字符。

另请参阅

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLeft()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links