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

AVEVA™ InTouch HMI

StringRight()

  • Last UpdatedSep 24, 2024
  • 1 minute read

返回指定的字符数,从文本最右边的字符开始。

类别

字符串型

语法

StringResult = StringRight( Text, Chars );

参数

文本

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

字符

要返回的字符数或整型属性。

附注

如果 Chars 设置为 0 ,则返回整个字符串。

示例

StringRight("The Pump is On", 2) ‘ 返回 "On";

StringRight("The Pump is On", 5) ‘ 返回 "is On";

StringRight("The Pump is On", 87) ‘ 返回 "The Pump is On";

StringRight("The Pump is On", 0) ' returns "The Pump is On";

另请参阅

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links