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

PI System Management Tools

Trim

  • Last UpdatedOct 04, 2024
  • 1 minute read

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."]

In This Topic
TitleResults for “How to create a CRG?”Also Available in