Progress
Language Reference
LC Function
Returns a character string identical to a specified string, but all uppercase letters in the string are converted to lowercase.
SYNTAX
string
A character expression that contains uppercase letters you want to convert to lowercase.
EXAMPLEThis procedure finds a customer record. After the user updates the sales-rep field, the procedure converts the first character of the sales-rep value to uppercase and the remaining characters to lowercase.
The CAPS function uses the SUBSTRING function to extract the first character of the field, which it then converts to uppercase.
In the LC function, the result of the SUBSTRING function is the remaining characters in the sales-rep field, starting with character position 2. (No length is specified, so the remainder of the string is assumed). The LC function converts these characters to lowercase.
NOTES
- The LC function returns lowercase characters relative to the settings of the -cpinternal and -cpcase startup parameters. For more information on these parameters, see the Progress Startup Command and Parameter Reference.
- The LC function is double-byte enabled. The specified expression can yield a string containing double-byte characters; however, the LC function changes only single-byte characters in the string.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |