Trim
- Last UpdatedOct 04, 2024
- 1 minute read
- PI System
- PI Server 2018
- PI Server
Trim blanks on both sides of a string.
Syntax
Trim(s1)
Arguments
-
s1
string
Returns
The source string with leading and trailing blanks removed.
Exceptions
If s1 is not a string, an error value is returned.
Example
-
Trim(" String ")
[Returns "String"]
-
Trim(" String is a string attribute. ")
[Returns "String is a string attribute."]