Previous Next

CAPS function
Converts any lowercase characters in a CHARACTER or LONGCHAR expression to uppercase characters, and returns the result.
Syntax 
 
CAPS ( expression )
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:
 
REPEAT:
  PROMPT-FOR Customer.CustNum.
  FIND Customer USING Customer.CustNum.
  UPDATE Customer.Name Customer.Address Customer.City Customer.State.
  Customer.State = CAPS(Customer.State).
  DISPLAY Customer.State.
END.
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 OpenEdge Deployment: Startup Command and Parameter Reference.
*
See also 
LC function

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.