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

AVEVA™ InTouch HMI

使用空格设置字符串格式

  • Last UpdatedSep 24, 2024
  • 1 minute read

在脚本中,可以使用 StringSpace() 函数将空格(空白)添加到字符串。

语法

result = StringSpace (number)

参数

数字

数字、数值标记名或数值表达式。

示例

StringSpace(4) 返回包含 4 个空格的字符串。

"Pump"+StringSpace(1)+"Station” 返回 "Pump Station"。

In This Topic
Related Links