8.3.10 LTrim (remove leading spaces from a string)
- Purpose
-
Returns a string with the leading spaces removed.
- Syntax
LTrim (String [, Option])
- Arguments
-
- String
-
Specify the string itself or a variable that stores this value.
If no leading spaces are found in the specified string, the command returns the entire string.
- Option
-
Specify the following optional value:
Value
Meaning
Twice
Remove all leading spaces.
- Description
-
If you omit the Option argument, the LTrim command returns a string with one-byte leading spaces removed.
If you specify Twice in Option, both one-byte and two-byte leading spaces are removed.
- Example
' Store "ABC DEFG " in variable string1. Dim string1 string1 = LTrim (" ABC DEFG ", Twice)
- JP1/Script version
-
Supported from JP1/Script 05-00.