Click or drag to resize

Lower Function

Convert the uppercase and mixed case characters in a string to lowercase.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION Lower(
	cString AS STRING
) AS STRING
View Source

Parameters

cString
Type: String
The string to convert to lowercase.

Return Value

Type: String
<cString> with all alphabetic characters converted to lowercase.  All other characters remain the same as in the original string.
Remarks
Lower() is related to Upper(), which converts lowercase and mixed case strings to uppercase.  Lower() is also related to IsLower() and IsUpper(), which determine whether a string begins with a lower or uppercase letter. Lower() is generally used to format strings for display purposes.  It can, however, be used to normalize strings for case-independent comparison or indexing purposes. This function is nation-dependent.
Examples
These examples demonstrate various results of Lower():
X#
? Lower("1234 CHARS = ")                // 1234 chars =
LOCAL cString AS STRING
cString := "DATA"
? Lower(cString)                                // data
? cString                                        // DATA
See Also