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.

Figure 1. Table String Attributes dialog box


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:

[ R | L | C | T ][ U ][max-length]

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.

Table 1. String attribute examples
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.