LeftTrim

Description

Removes spaces from the beginning of a string.

Syntax

LeftTrim ( string )
LeftTrimW ( string )

Argument

Description

string

The string you want returned with leading spaces deleted

Returns

String. Returns a copy of string with leading spaces deleted if it succeeds and the empty string ("") if an error occurs. If string is null, LeftTrim returns null.

Examples

Example 1

This statement returns RUTH:

LeftTrim(" RUTH")

Example 2

These statements delete leading spaces from the text in the MultiLineEdit mle_name and store the result in emp_name:

string emp_name

emp_name = LeftTrim(mle_name.Text)

See also