Skip to main content

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)

Was this article helpful?

We're sorry to hear that.