Click or drag to resize

Lower Function

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

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION Lower(
	cString AS STRING
) AS STRING
Request Example 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#
1? Lower("1234 CHARS = ")        // 1234 chars =
2LOCAL cString AS STRING
3cString := "DATA"
4? Lower(cString)                // data
5? cString                    // DATA
See Also