Try OpenEdge Now
skip to main content
Basic Database Tools
Table Tasks : Creating a table : Specifying string attributes
 

Specifying string attributes

By specifying string attributes, you control how much space is allocated within an r-code text segment for a string.
To specify table string attributes:
1. Choose the String Attributes button. The Data Dictionary displays the Table String Attributes dialog box:
2. Specify the attribute characters for the table label and the table validation message, as follows:
Character
Description
T
Specifies to remove trailing spaces during string display. The Data Dictionary does not physically remove the spaces from the string, but replaces them with null values. The Dictionary does not display null values.
R
Specifies to right-justify the string.
L
Specifies to left-justify the string.
C
Specifies to center the string.
U
Indicates that the Translation Manager and the compiler should not translate the string.
max-length
Specifies the amount of space allocated for the text segment. You can specify a numberfrom 1 to 999.
You can specify the characters in any order but can only use each character once. Also, you cannot use any of the letters in conjunction with each other, except for U. If you do not specify the maximum length, the Dictionary uses the length of the original string.
If you do not specify justification, the Compiler left-justifies the string by default, unless the string is a column label. If the string is a column label for a decimal or integer column or a side label, it is right-justified.
3. Choose OK to return to the Add New Table window.