VBScript » Functions » LTrim

Version: 1.0

Syntax:
LTrim(String)

The LTrim function removes extra blank spaces only on the left side of a string.

Examples

Code:
<% =LTrim(" A sentence with extra spaces on bothsides. ") %>
Output:
A sentence with extra spaces on both sides.
Explanation:

Note that HTML automatically removes extra blank spaces in this view.

Language(s): VBScript

See Also: