LCase$() 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

Returns a lower-case equivalent of a string. You can call this function from the MapBasic window in MapInfo Pro.

Syntax

LCase$( string_expr ) 

string_expr is a string expression.

Return Value

String

Description

The LCase$() function returns the string which is the lower-case equivalent of the string expression string_expr.

Conversion from upper- to lower-case only affects alphabetic characters (A through Z); numeric digits, and punctuation marks are not affected. Thus, the function call:

LCase$( "A#12a" )

returns the string value "a#12a".

Example

Dim regular, lower_case As String
regular = "Los Angeles"
lower_case = LCase$(regular)
' 
' Now, lower_case contains the value "los angeles"
'

See Also:

Proper$() function, UCase$() function