RIGHT 函数 (VisioShapeSheet)

根据指定的字符数返回文本字符串中的最后一个字符。

语法

右 (文本 [, num_chars_opt ])

参数

名称 必需/可选 数据类型 说明
text
必需
字符串
包含要提取的字符的文本字符串。
num_chars_opt
可选
Number
要提取的字符数。 默认值为 1。

返回值

String

备注

num_chars_opt 的值必须大于等于零 (0)。

如果 num_chars_opt 大于文本的长度,RIGHT 将返回所有文本。 如果忽略 num_chars_opt,则假定它为 1。

示例

RIGHT ("January 1, 2004", 4)

返回值 2004。