STR_LTRIM

Use the STR_LTRIM script function to remove leading spaces from a string.

Syntax

STR_LTRIM (String)

Parameters

Parameter Description Format
String The alphanumeric string from which leading spaces are removed Script literal or script variable

Return Codes

Return Value Condition
String The input string with all leading spaces removed

Examples

The following example removes leading spaces from a string and prints the result (Database opening...   ) to the activation report.

: SET &RET# = STR_LTRIM ("   Database opening...   ")

: PRINT &RET#

See also:

seealso

Script Elements for Editing Strings