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

StrTrimR

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

Syntax:

STRTRIML (SymName|"String")

where:

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

Example:

CREATE VARIABLE StrTemp1 AS STRING

Variable = STRTRIMR ("SourceString")

SET VARIABLE StrTemp1 = STRTRIMR (" StringTest ")

 

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

Published:

StrTrimR

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

Syntax:

STRTRIML (SymName|"String")

where:

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

Example:

CREATE VARIABLE StrTemp1 AS STRING

Variable = STRTRIMR ("SourceString")

SET VARIABLE StrTemp1 = STRTRIMR (" StringTest ")

 

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

For an optimal Community experience, Please view on Desktop