String Attributes option
- Last Updated: December 2, 2024
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
String Attributes option
The String Attributes option allows you to control how much space is allocated within an r-code text segment for a string. It is important when you translate a string that you specify enough space for the translated string. String attributes can also specify the text justification within the r-code. When you choose String Attributes, the Table String Attributes dialog box shown in the following figure appears.

The Table String Attributes dialog box contains the following fields:
- Label — Specifies the string attribute characters for the table label
- Validation Message — Specifies the string attribute characters for the table validation message
Use the following character and number combinations to enter the string attribute label:
|
See Specify string attributes for details about the control characters you can enter in the label field.
The following table lists several examples of string attributes.
| Example | Meaning |
|---|---|
| L15 | Specifies a width of 15 characters within the r-code text segment and left-justifies the string within the allocated space |
| 15R | Specifies a width of 15 characters within the r-code text segment and right-justifies the string within the allocated space |
| T20 | Specifies a width of 20 characters and trims the leading and trailing spaces within the allocated space |
| UC20 | Specifies a width of 20 characters and centers the string within the allocated space, and also indicates that the string is non-translatable |
| 20RU | Specifies a width of 20 characters and right-justifies the string within the allocated space, and also indicates that the string is non-translatable |
| 30 | Specifies a width of 30 characters |
See OpenEdge SQL Reference for more information about string attributes and string translation.