322
6. Close button: After closing the "Table Manager" dialog, and returns you to
your previous position in the program. When there is no table created, if you
press "Enter" on the "Close" button, the "Database Manager" program is
closed.
Move among these controls by pressing “Tab” or "shift-tab".
14.1.1 Add Table
"Add table" is a dialog for creating a new table. This dialog contains "Table
name" edit box, "created fields" list, "Add field" button, "Modify field" button,
"Delete field" button, "Previous field" button, "Next field" button, "Confirm"
button and "Cancel" button. Move among these controls by pressing “Tab” or
"shift-tab".
Suppose you want to create a table called "address book" which contains 4
fields: name, telephone, address, and memo. Create this table as follows.
1) In the "Table Manager" dialog, press “Tab” to move to the "Add table"
button, and press "Enter". Or just press "a" from the dialog.
2) The "Add Table" dialog appears, and the "Table name" edit box is focused.
3) Type "address book" and then press “Tab”.
4) The "created fields" list is focused. As you have not yet added fields, "no
items" is displayed in the list. As you add fields to this table, they are added
to this list box.
5) Press “Tab” to move to the "Add field" button, and press "Enter". Or press
the shortcut key, "a".
6) The "Add field" dialog is opened, and the "Field name" edit box is focused.
7) Type "name" and press “Tab”.
8) The "Field type" combo box is focused. Press “down arrow button” or “up
arrow button” to move to "edit box", and press “Tab”.
9) The "Set primary key" check box is focused. To set the current field as the
primary key, press "Space" to check it.
10) Press “Tab” to move to the "Confirm" button, and press "Enter". Now, the
"name" field has been added to the "address book" table.