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.

Copy

Syntax

STRTRIM (SymName|"String")         

where:

  • SymName is the name of a symbol.
  • String is a character string, enclosed in double quotation marks.
Copy

Example

CREATE VARIABLE StrTemp1 AS STRING
Variable = 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.

Copy

Syntax

STRTRIM (SymName|"String")         

where:

  • SymName is the name of a symbol.
  • String is a character string, enclosed in double quotation marks.
Copy

Example

CREATE VARIABLE StrTemp1 AS STRING
Variable = 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