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";