CAPS function
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Converts any lowercase characters in a CHARACTER or LONGCHAR expression to uppercase characters, and returns the result. The data type of the returned value matches the data type of the expression passed to the function.
Syntax
|
- expression
- A constant, field name, variable name, or expression that results in a CHARACTER or LONGCHAR value.
Example
In the following code example, the CAPS function converts the characters in the state field to uppercase:
r-caps.p
|
Notes
- The
CAPS function returns uppercase characters relative to the settings
of the Internal Code Page (
-cpinternal) and Case Table (-cpcase) startup parameters. For more information on these parameters, see Startup Command and Parameter Reference. - The CAPS function is double-byte enabled. The specified expression can yield a string containing double-byte characters; however, the CAPS function changes only single-byte characters in the string.