Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

StrTrim

Use this function to isolate the text of a string from all leading and trailing spaces.

Syntax:

STRTRIM ("String")

where:

  • String is a character string, enclosed in double quotation marks.

Code example:

CREATE VARIABLE StrTemp1 AS STRINGVariable = STRTRIM ("SourceString")SET VARIABLE StrTemp1 = STRTRIM (" StringTest ")

// StrTemp1 will equal "StringTest" (without the double quotation marks)

Published:

StrTrim

Use this function to isolate the text of a string from all leading and trailing spaces.

Syntax:

STRTRIM ("String")

where:

  • String is a character string, enclosed in double quotation marks.

Code example:

CREATE VARIABLE StrTemp1 AS STRINGVariable = STRTRIM ("SourceString")SET VARIABLE StrTemp1 = STRTRIM (" StringTest ")

// StrTemp1 will equal "StringTest" (without the double quotation marks)

For an optimal Community experience, Please view on Desktop