LTrim$() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Trims space characters from the beginning of a string and returns the results. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

LTrim$( string_expr )

string_expr is a string expression.

Return Value

String

Description

The LTrim$() function removes any spaces from the beginning of the string_expr string, and returns the resultant string.

Example

Dim name As String 
name = " Mary Smith" 
name = LTrim$(name) 

' name now contains the string "Mary Smith"

See Also:

RTrim$() function