Operating Condition
Syntax: SET NAMEWIDTH value
Range: 4 to 128 characters
Default: 18
SET NAMEWIDTH controls the name width of a table, column, form, report, label, etc. that R:BASE directs to the printer, screen, or file when using the BACKUP, COMPUTE, CROSSTAB, DISPLAY, LIST, SELECT, TYPE, UNLOAD, or WRITE commands. The defined width value specifically controls the number of characters for the first column in the displayed list, whether it is the first column for a SELECT command, or the table names in a LIST TABLES command. Use the WIDTH setting to control the number of characters for the entire row/line of data.
Do not set the width to a number greater than the number of characters your printer can fit on a line; a typical page and computer screen display 80 characters. WIDTH does not affect report generation; each report defines the width of a data line.
The LIST TABLES command produces the below results when NAMEWIDTH is 18 and WIDTH is 79.
R>LIST TABLES
Name Columns Rows Comments
------------------- ------- --------- ------------------------------------
BonusRate 3 7 Rates for Bonuses
Component 2 12 Component Identification Number and
Description
CompUsed 2 22 Components Used in a Model
Contact 12 35 Customer Contact Information
ContactCallNotes 5 3 Contact Call Notes
Customer 17 30 Customer Information
DBAccess 1 1 Database Access
Departments 8 31 Departments
Employee 19 13 Employee Information
FormTable 1 1 Dummy Table for Forms
HourlyTemps 3 3 Temperature Data for Gauge
With the NAMEWIDTH value doubled to 36, the "Name" column width is increased. Notice that the "Comments" column is now wrapped.
R>SET NAMEWIDTH 36
R>LIST TABLES
Name Columns Rows Comments
------------------------------------- ------- --------- ------------------
BonusRate 3 7 Rates for Bonuses
Component 2 12 Component
Identification
Number and
Description
CompUsed 2 22 Components Used
in a Model
Contact 12 35 Customer Contact
Information
Customer 17 30 Customer
Information
Increasing the WIDTH setting will display the "Comments" column without the wrapped characters.
R>SET WIDTH 120
R>LIST TABLES
Name Columns Rows Comments
------------------------------------- ------- --------- -----------------------------------------------------------
BonusRate 3 7 Rates for Bonuses
Component 2 12 Component Identification Number and Description
CompUsed 2 22 Components Used in a Model
Contact 12 35 Customer Contact Information
Customer 17 30 Customer Information
DBAccess 1 1 Database Access
Departments 8 31 Departments
Employee 19 13 Employee Information
FormTable 1 1 Dummy Table for Forms
HourlyTemps 3 3 Temperature Data for Gauge