Format strings with spaces
- Last UpdatedJul 23, 2024
- 1 minute read
In a script, you can use the StringSpace() function to add spaces (blanks) to strings.
Syntax
result = StringSpace (number)
Parameters
number
A literal number, numeric tagname, or numeric expression.
Example(s)
StringSpace(4) returns a string consisting of 4 blanks.
"Pump"+StringSpace(1)+"Station" returns "Pump Station".