home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / database / powerbase / docs / create < prev    next >
Encoding:
Text File  |  1995-08-21  |  26.8 KB  |  591 lines

  1. Ch 4 − Creating a New Database
  2.  
  3. Five steps are involved in setting up a new database:−
  4.  
  5. (1)     Create the database application shell.         
  6.  
  7. (2)     Design the record screen         
  8.  
  9. (3)     Specify the number of records the database is to contain.         
  10.  
  11. (4)     Specify the primary key.         
  12.  
  13. (5)     Build the empty database. 
  14.  
  15. 4.1 Creating the database application shell
  16.  
  17. You need to have Powerbase installed on the icon-bar but with no database
  18. open, i.e. “No data” should appear under the icon. Click SELECT over the
  19. icon and a Save box will appear. Type in the name of your database and drag
  20. the database icon to a directory window. Remember that the name cannot
  21. exceed 10 characters, including the initial “!”. If you enter more the name
  22. will be truncated and you could end up overwriting an existing database with
  23. a similar name. You don’t actually need to enter the “!”; Powerbase will
  24. insert it automatically. 
  25.  
  26. If you open the newly-created application directory (Shift double-click) you
  27. will find that it contains files called !Run, !Sprites, !Sprites22 and
  28. Colours and four directories called Indices, PrintJobs, PrintRes and
  29. ValTables. All Powerbase applications require these objects to be present so
  30. don’t delete any of them. 
  31.  
  32. 4.2 Designing the record screen
  33.  
  34. When you created the application shell you were left with a blank window on
  35. screen and it is here that you must design the database record. This is the
  36. lengthiest and trickiest part of setting up a database, although efforts
  37. have been made to render it as easy as possible. If you have closed the
  38. window just click on the Powerbase icon on the icon-bar to re-open it. 
  39.  
  40. 4.2.1 Simple field creation
  41.  
  42. Clicking MENU over the window brings up the New database menu on which every
  43. item except Design field is shaded at this stage. Design field leads to a
  44. window which lets you specify the characteristics of a field. First decide
  45. what category of field you want to create. There are five such categories,
  46. selected via radio buttons:− 
  47.  
  48. (1)     Data  
  49.  
  50. (2)     External  
  51.  
  52. (3)     Button  
  53.  
  54. (4)     Check-box
  55.  
  56. (5)     Stamp
  57.  
  58. For the present we will confine ourselves to the first, which is the default
  59. selection. As well as the field category you must decide on the type of
  60. field within the category. The default offered is Unrestricted, meaning that
  61. it will accept all printable characters. We’ll look at other types later. 
  62.  
  63. Decide on a name for the field and enter it in the Descriptor icon. This is
  64. the name which will appear on the record window and may be up to 40
  65. characters long. You must also enter a Tag, which is used to identify the
  66. field in search formulae and is limited to 4 characters. Next enter the Data
  67. length; the maximum number of characters the field is to hold. Values up to
  68. 246 are allowed. Now click on Create and the field will appear on the record
  69. window. It’s probably not where you want it so use SELECT to drag the white
  70. rectangle to the position required. When you drop the field in its new
  71. position you will see that the descriptor falls into place too. If you want
  72. the descriptor somewhere other than to the left of the data icon (above it,
  73. for example) you can move it by itself without the data icon moving. 
  74.  
  75. That, basically, is all you need to do in order to create fields. To correct
  76. a mistake click MENU over the field to be altered and making the required
  77. changes. Then click on Update (Create will be shaded). 
  78.  
  79. 4.2.2 Deleting, inserting and re-ordering fields.
  80.  
  81. It is important to realise the difference between the physical position of
  82. fields on the screen and the internal numbering of the fields.  The former
  83. is purely a matter of appearance and you may drag the fields about the
  84. screen to your heart’s content, but the latter is fundamental to the way the
  85. database will function.  Each field has a number which corresponds to the
  86. order in which it was created.  Whenever you invoke the Field creation
  87. window the title-bar shows either the number of the (new) field you are
  88. about to create (e.g. “New field 3”) or the number of the (existing) field
  89. you were pointing at when you opened the menu (e.g. “Modify field 5”).  The
  90. numbering of fields determines the order in which they will be “visited” by
  91. the caret when you are actually using the database, i.e. the editing order.
  92.  
  93. A field may be deleted by clicking MENU over it and clicking on Remove.
  94. Fields which come after the deleted field will be found to have had their
  95. field-numbers reduced by 1.  Inserting a field into the middle of the
  96. existing field-sequence is obviously a little more complicated because we
  97. have to specify where in the sequence the new field goes.  You need to know
  98. the number of the field before which you want to place the new one.  This
  99. number is entered in the before field icon before you click on Create. If
  100. you examine fields which come after the insertion you will find that their
  101. numbers have been increased by 1.
  102.  
  103. The procedures just described can also be used to change the numbering of a
  104. field; first remove it , then re-insert it.  There are, however, better
  105. ways.  Click MENU over an existing field to bring up the dialogue box. We
  106. will call this the “current field”. Enter the number of another existing
  107. field in the same place as was used above to specify the insertion position
  108. of a new field. We’ll call this the “entered field”. You may then do one of
  109. the following:−
  110.  
  111. •       Click Swap with. This does exactly what you would expect. It swaps
  112. the positions of the current field and the entered field in the field
  113. sequence. 
  114.  
  115. •       Click Renumber as.  This is a bit more complicated. The current
  116. field acquires the number of the entered field. If this involves giving the
  117. current field a lower number than previously the fields beyond the new
  118. position are all moved up one place to open a gap for it, at the same time
  119. closing up the gap left by moving the current field from its old position.
  120. If it is being given a higher number the fields above its old position all
  121. move down one place, closing up the gap left by its removal and opening a
  122. gap in the required place farther up the sequence. 
  123.  
  124. 4.2.3 Re-sizing the bounding box
  125.  
  126. Left to itself Powerbase makes all its field icons the same height and of a
  127. suitable length to contain the number of characters specified in Data
  128. length. This may not be quite what you want. If the Data length is more than
  129. about 70 the field runs off the right edge of the window. You may also want
  130. to make the field taller for emphasis. (But not for displaying multiple
  131. lines. Only fields of Text block type can be multi-line. These are discussed
  132. later.) There are two ways of altering the size of a field’s bounding box:−
  133.  
  134. (a)     By dragging with ADJUST.         
  135.  
  136. (b)     By typing in the required width and height in the W and H icons of
  137. the Field creation window. The units used are the same OS units used for
  138. plotting on the screen.  (In mode 27 the full screen is 1240 x 960 OS
  139. units.)
  140.  
  141. Besides altering the size of the bounding box by typing the data directly,
  142. you may adjust its position in the same way by entering the X and Y
  143. co-ordinates of the lower left corner. The units are the same as for width
  144. and height but the origin is the top left corner of the record window. This
  145. means that the Y values are always negative. Clicking on Fit automatically
  146. sets the bounding-box width to fit the data length.
  147.  
  148. 4.2.4 More about tags and descriptors
  149.  
  150. Tags are of great importance in Powerbase. They are used when querying the
  151. database to produce reports, export CSV files etc. and also by some internal
  152. operations. Every writable field must have a tag and no two fields may have
  153. the same tag. Descriptors are less important. Their main purpose is to
  154. provide visible labels for fields and in some cases you may not need a
  155. descriptor at all. e.g. If your database is to hold names and addresses you
  156. might want the record to look like this:- 
  157.  
  158.                         NAME    Fred Bloggs                
  159.  
  160.                         ADDRESS 27, Every Street                                 
  161.  
  162.                         Anytown                                 
  163.  
  164.                         Woolshire                                 
  165.  
  166.                         WL4 7XZ 
  167.  
  168. There are 5 fields here but, having given the second one the descriptor
  169. ADDRESS, you don’t really want descriptors for the remaining 3 (except
  170. perhaps POSTCODE for the last). It is quite in order to have null
  171. descriptors like this, but your must give each field a tag. Suitable ones
  172. might be NAME, ADD1, ADD2, ADD3, ADD4. (Remember they must be unique and not
  173. more than 4 characters.) 
  174.  
  175. The only cases in which you may omit the tag is where the field is simply an
  176. explanatory label and contains no actual data so that there would be no
  177. reason to include it in a query. 
  178.  
  179. 4.2.5 Other types of Data field
  180.  
  181. So far we have only used fields of Unrestricted type. Clicking on “bump”
  182. icons to the left of the field type, or on the menu button to the right,
  183. lets you cycle through the various types available. These are:− 
  184.  
  185. (a) Unrestricted        Accepts any printable character.
  186.  
  187. (b) Alphanumeric        Accepts all letters and numerals and common
  188. punctuation.  
  189.  
  190. (c) Upper case  Accepts capital letters and numerals only. 
  191.  
  192. (d) Numeric     Accepts numerals, +, − and . (decimal point).
  193.  
  194. (e) Yes/No      Accepts Y and N only.
  195.  
  196. (d) Date        Accepts dates in the form dd-mm-yy or dd-mm-yyyy.
  197.  
  198. (e) Calculated  Can’t be typed into directly. Takes its value from other
  199. fields
  200.  
  201. (f) Composite   Similar to a Calculated field, but for textual rather than             
  202. numeric data.
  203.  
  204. (g) Time        Accepts times in the form hh:mm:ss up to a maximum value       
  205. of 23:59:59.
  206.  
  207. When Numeric or Calculated is selected, certain icons in the dialogue box
  208. which are normally shaded become available. Thus, you can make such a field
  209. of fixed-point type and Powerbase will modify whatever you type in so that
  210. it is displayed to the specified number of decimal places. For Numeric
  211. fields only, you may also specify a maximum and minimum value for numbers
  212. which may be entered in these fields.  
  213.  
  214. A Date field should be either 8 or 10 characters long in order to hold the
  215. date in one of the two formats specified above. The separator in these dates
  216. is, by default, a hyphen but may be changed via the Preferences window (see
  217. 14.5.1).  Note that the actual typing in of dates allows far more
  218. flexibility. You may type any non-numeric character as a separator and
  219. Powerbase will make sense of entries such as 4/5/87, duly converting it to
  220. 04-05-87 when you press Return. 
  221.  
  222. A Calculated field is used when you want the record to automatically display
  223. the result of a calculation based on other fields. Similarly, a Composite
  224. field might be used to display a person’s name in the form FORENAME SURNAME
  225. when the record uses separate fields for SURNAME and FORENAME. You don’t
  226. specify at this stage how the field value is derived; that’s done when the
  227. database is actually working. 
  228.  
  229. A Time field (like a date) is checked for validity and (again like a date)
  230. you may be fairly flexible in how you actually type the values in. If you
  231. enter 3.45;9 it will be reformatted as 03:45:09. The colon separator may be
  232. changed via the Preferences window (see 14.5.1). Arithmetic may be performed
  233. on times held in this type of field. 
  234.  
  235. For a description of the workings of Calculated and Composite fields see Ch
  236. 6. 
  237.  
  238. 4.2.6 External fields
  239.  
  240. External fields allow you to link Powerbase records to pieces of data of a
  241. size and type which make them unsuitable for inclusion in a Data field. Such
  242. items are sometimes called “BLOBs” (Binary Large Objects) in the PC world.
  243. The field types in this category and the types of data they “hold” are as
  244. follows:− 
  245.  
  246. (a) Text        Plain text files, such as Edit creates.
  247.  
  248. (b) Sprite      Sprite files, such as Paint creates.         
  249.  
  250. (c) Draw        Drawings such as Draw creates.
  251.  
  252. (d) Text block  Plain text files, as for (a). 
  253.  
  254. (e) Picture     Sprite files, as for (b).
  255.  
  256. When you create a field of type Text, Sprite or Draw it appears on the
  257. record window as a button bearing a small version of the icon for Edit,
  258. Paint or Draw respectively. Files of the appropriate type may be dropped on
  259. these buttons, whereupon the file is copied into a special system of
  260. subdirectories within the database application. Unlike fields of the Data
  261. category the data doesn’t become part of the Database file within the
  262. application; the Text, Sprite or Draw file retains its identity and may be
  263. exported for editing in the appropriate application. Clicking on the button
  264. in the record window will display the file if the filer knows the
  265. whereabouts of the relevant editor (Edit, Paint or Draw). 
  266.  
  267. Text block and Picture fields take this a step further by actually
  268. displaying a text or sprite file on the record window. The bounding box of
  269. the icon needs to be of suitable size to hold the text or picture. In the
  270. case of a Text block too small a box will cause the text to appear
  271. truncated. None is actually lost; it just can’t all be displayed. Too small
  272. a box for a Picture field will cause the sprite to spread beyond its
  273. boundaries. (N.B. To display the same sprite on each record, e.g. a company
  274. logo, define the field as of type Logo, not Picture.) 
  275.  
  276. 4.2.7 Check-box fields
  277.  
  278. These are fields whose status alternates between two values when clicked on
  279. with SELECT. Three types are defined:−
  280.  
  281. (a) Cross/tick  Displays a cross by default. A click changes it to a tick. A 
  282.  
  283.                 second click changes it back to a cross.         
  284.  
  285. (b) Null/tick   Similar to (a), but first state is an empty box.         
  286.  
  287. (c) Null/star   Similar to (b), but second state is a star. 
  288.  
  289. Check-boxes provide the fastest way of entering true/false or yes/no type
  290. data. If you examine the ValStrings file inside the Powerbase directory you
  291. will find strings associated with each of these three types the latter parts
  292. of which read, respectively:−
  293.  
  294. QNo,Yes                 Q-,Yes                 Q-,* 
  295.  
  296. These specify what will actually appear in a print-out when a check-box
  297. field is included in a query. You may change them if you wish, but don’t
  298. omit the initial Q (although this will not appear in the print-out) and take
  299. care not to alter the remainder of the string. 
  300.  
  301. 4.2.8 Stamp fields
  302.  
  303. Stamp fields resemble Calculated and Composite fields in that you cannot
  304. edit them; Powerbase takes care of their automatic updating. The following
  305. types are available:− 
  306.  
  307. (a) Record number       Database record number.         
  308.  
  309. (b) Sequence number     Unique value numbered upwards from base value set by
  310. user.
  311.  
  312. (c) Time        Time at which record was created.         
  313.  
  314. (d) Date                Date on which record was created.         
  315.  
  316. (e) Date and time       Date and time of record creation.         
  317.  
  318. (f) Day         Day on which record was created (in the form Mon, Tue etc      
  319. or day of month as 10, 24 etc). 
  320.  
  321. (g) Month       Month in which record was created (as either a string; Jan,            
  322. Feb etc or a number; 1, 2 etc). 
  323.  
  324. (h) Year        Year when record was created as four-digit number, e.g. 1993
  325.  
  326. (i) Last altered        Records the date and time record is first created
  327. and updates   it if the record is subsequently altered. Merely displaying
  328. the         record does not cause updating.         
  329.  
  330. (j) Logo                Allows a sprite to be included as a logo on  every
  331. record.
  332.  
  333. All such fields are “stamped” by Powerbase when a record is first entered.
  334. When using (a) or (b) make sure the Data length icon contains a large enough
  335. value to accommodate the longest number which will be encountered. In the
  336. case of (b) the base value from which the sequence numbers begin is entered
  337. in the Numeric min box. For the other types the required field length is
  338. already known by Powerbase and the Data length box is therefore shaded. 
  339.  
  340. Type (d) fields may display the date in any of three formats:− 
  341.  
  342. (i)     Sun,01 Aug 1993 (called “Date stamp”)         
  343.  
  344. (ii)    01-08-93                        (called “Date stamp8”)         
  345.  
  346. (iii)   01-08-1993              (called “Date stamp10”) 
  347.  
  348. (ii) and (iii) are identical to the formats in which Powerbase displays
  349. dates of the ordinary editable-data type (see 4.2.5). The numbers refer to
  350. the field length occupied by the date stamp. 
  351.  
  352. Type (j) fields require the name of the sprite to be entered as the tag of
  353. the field to be used as a logo. This means that the sprite name is limited
  354. to four characters. You may have several logo fields on your record, all the
  355. required sprites being included in a file called UsrSprites which is placed
  356. inside the database directory. 
  357.  
  358. 4.2.9 Button fields
  359.  
  360. Any or all of the control buttons on the Powerbase keypad may be made to
  361. appear on the record window itself. They have exactly the same functions as
  362. the keypad equivalents. These button fields let you build a customised
  363. database which allows the user to use only the features you want him/her to
  364. have access to since the keypad and menus can then be suppressed. There are
  365. also four extra buttons (Print, Menu, Exit and Directory) which have no
  366. keypad equivalent:−
  367.  
  368. •       Print  brings up the Print window for report generation. 
  369.  
  370. •       Exit duplicates the action of Close database on the icon-bar menu. 
  371.  
  372. •       Directory enables you to open a filer window by clicking on the
  373. button. The descriptor may be used to give the name of the associated
  374. directory and the link is established by dropping the directory onto the
  375. button in the same way that files are linked to fields of External type. 
  376.  
  377. •       Menu allows you to associate an ordinary Data field with a pop-up
  378. menu activated by means of a button.  Choosing a character string from the
  379. menu enters that string into the Data field. For this to work the field
  380. number of the  menu button must immediately follow that of the associated
  381. Data field. The menu itself is a text file consisting of a heading and the
  382. items which are to appear on the menu, each on its own line. The file, whose
  383. name is the tag of the associated Data field plus the word “menu”, is stored
  384. in the database directory.
  385.  
  386. 4.3 A short-cut to a working database
  387.  
  388. Immediately beneath the Design field entry on the menu is one called Default
  389. database. Choosing this is by far the fastest way of getting a database up
  390. and running. Its action is to create three files inside the application
  391. directory. These are called Form (which holds the record design), PrimaryKey
  392. and Database (which will ultimately contain the entered records). The number
  393. of records in the database is set to 100, with 25 as the amount by which
  394. this should increase when the database becomes full. The primary key is
  395. defined as the first four characters of the first writable field. The
  396. database is opened and a blank record displayed ready for data entry.  Since
  397. you can always alter such things as the database size and primary key
  398. structure later, you might wish to use these defaults while you experiment
  399. with the database.
  400.  
  401. 4.4 Specifying the database size
  402.  
  403. If, however, you want to set the database size yourself at this stage
  404. proceed as follows:− 
  405.  
  406. (1)     Save the Form file (which contains all the field data) from the Save
  407. box reached from the menu item. The pathname is correctly set for saving the
  408. file inside your database application. 
  409.  
  410. (2)     You will now see that the Database size choice is no longer shaded
  411. and may be used to reach the Size window in which you specify the number of
  412. records in the database and the increment for expanding the database when it
  413. becomes full. 
  414.  
  415. 4.5 Specifying the primary key
  416.  
  417. 4.5.1 General procedure
  418.  
  419. Click MENU and choose Primary key.  This opens the Key Structure window. The
  420. primary key (or any other key) is derived from one or more record fields
  421. called key fields. Up to four key fields may be used to define a key but we
  422. will begin by using just one.  Four pieces of information need to be
  423. specified:−
  424.  
  425. (1)     Choose the field, either by clicking on the “bump” icons or choosing
  426. from the associated pop-up menu.  The default is the first editable field in
  427. the record.
  428.  
  429. (2)     Enter the word within the field from which characters are to be
  430. taken to make up the key.  The default is word 1.
  431.  
  432. (3)     Enter the position within the word from which characters are to be
  433. taken. L (default) means take from start of word, R means take from end.  A
  434. number (n) means start at the nth character.
  435.  
  436. (4)     Enter the number of characters to be taken from the word. The
  437. initially-set value is 4 but thereafter the default is the defined field
  438. length. 
  439.  
  440. After entering this information click on Create to build the database.
  441.  
  442. 4.5.2 Some illustrative examples
  443.  
  444. Supposing our key-field contains a person’s name in the order FORENAME
  445. SURNAME. The following settings of word, position and characters would
  446. produce the keys shown from the name ALBERT HERRING
  447.  
  448.                     Word            Position            Chars   Key
  449.  
  450. (a)     1       L       5       ALBER
  451.  
  452. (b)     1       R       4       BERT
  453.  
  454. (c)     1       2       4       LBER
  455.  
  456. (d)     1       4       4       ERT              (NOTE: stops at word end)
  457.  
  458. (e)     2       L       4       HERR
  459.  
  460. (f)     2       R       3       ING
  461.  
  462. (g)     2       3       4       RRIN
  463.  
  464. (h)     0       L       5       ALBER
  465.  
  466. (i)     0       L       7       ALBERTH (NOTE: ignores word break)
  467.  
  468. (j)     0       R       8       THERRING        (NOTE: ignores word break)
  469.  
  470. (k)     0       4       6       ERTHER  (NOTE: ignores word break)
  471.  
  472. Take particular note of what happens if the word number is entered as 0 (or
  473. left blank).  All breaks between words are then ignored.  The field is
  474. treated as if the blanks between words had been removed leaving a single
  475. long word which is then subjected to the process specified by the position
  476. and characters icons.  When, on the other hand, the word number is 1 or
  477. greater the scanning for characters stops when the end of the word is
  478. reached so that the key might be shorter than the character length
  479. specified. Example (d) illustrates this.
  480.  
  481. 4.5.3  Using more than one field in a key
  482.  
  483. Key fields should be chosen with care. An ideal key field is one whose
  484. contents would never be repeated in another record. Powerbase lets you
  485. enforce this condition if you wish (see 11.2.1). Occasional repetitions may
  486. not be serious, but a field which can have only a few “values” is usually a
  487. poor choice. A customer number or membership number is the sort of thing we
  488. are looking for but your database may not contain anything like that.  In a
  489. database of school pupils the pupil’s name would be a good choice of key,
  490. but the form teacher’s name would not, since only a small number of names
  491. would be involved, each appearing on the record of many pupils. 
  492.  
  493. Suppose you decide to use a person’s name, stored surname first, in a single
  494. field whose tag is NAME, as a key. You could use the whole name but it would
  495. probably be far too long. The first four letters would be more appropriate
  496. but, as this is the start of the surname, you might get a lot of
  497. duplication. e.g. PRESTON and PRESCOTT would both have the key PRES − and
  498. this is before we even consider people whose surnames are identical. To get
  499. round this problem, Powerbase lets you construct an alphanumeric key from
  500. characters taken from up to four successive words. You will seldom need to
  501. go so far. In the present case a five-letter key made up from the first four
  502. letters of the surname and one letter of the forename would be good enough
  503. for most purposes. 
  504.  
  505. Set up the Key Structure window as follows:−
  506.  
  507.                 Field             Word          Position                    
  508. Chars
  509.  
  510.         1st row:        NAME    1               L               4
  511.  
  512.         2nd row:        NAME    2               L               1
  513.  
  514. This works quite well.  Smith Peter and Smith Janet would have the keys
  515. SMITP and SMITJ. Duplication can still occur, but not often enough to be a
  516. serious problem.  You might, of course, want to store surname and forename
  517. in different fields. Let’s call their tags SNAM and FNAM.  
  518.  
  519. The key definition is then:−
  520.  
  521.                 Field             Word          Position                    
  522. Chars
  523.  
  524.         1st row:        SNAM    1               L               4
  525.  
  526.         2nd row:        FNAM    1               L               1
  527.  
  528. and the keys generated will be exactly the same as they would be for the
  529. single field NAME.
  530.  
  531. There are databases where no single field is suitable for constructing the
  532. primary key.  In a database of classical music, for example, there could be
  533. a field for the composer’s name and one for the name of the work. Neither is
  534. much use individually, the former could contain many occurrences of Mozart
  535. and Beethoven and the latter many repetitions of Symphony No.5 or String
  536. Quartet in D minor. 
  537.  
  538. This is the kind of situation where you might want to use two fields and
  539. four words, taking one word from the Composer field and three from the Work
  540. field using, say, 4,3,3 and 2 characters respectively from them.  The
  541. following two works then give the keys shown:− 
  542.  
  543.         BEETHOVEN  Symphony No 5:               BEETSYMNO5                 
  544.  
  545.         MOZART Piano concerto 23:               MOZAPIACON23 
  546.  
  547. Note the following points in these examples:−                
  548.  
  549. (a)     If a word is shorter than the number of letters assigned to it (“No”
  550. in the first example) then the whole word is used but no padding is
  551. inserted.
  552.  
  553. (b)     It may be necessary to omit an insignificant word (“No” in the
  554. second example), in order to make a significant one (“23”) come in the first
  555. four words of the combined key fields. 
  556.  
  557. NOTE It is not usually sensible to build up keys derived from Numeric fields
  558. out of separate bits in this way and, indeed, Powerbase won’t allow you to
  559. do so. Numeric keys should use one key-field only, the key being the actual
  560. numeric value of the field contents.
  561.  
  562. 4.5.4 Other matters
  563.  
  564. We have already noted that a word shorter than the number of characters
  565. specified is used just as it is, resulting in a short key. There might be
  566. times when you want short words padding out with spaces to give a key of
  567. full length and there is a switch to select this action in the Key Structure
  568. window.
  569.  
  570. A final factor to be decided is whether the indexing is to pay attention to
  571. the case of letters, i.e. if they are capitals or small letters By default
  572. indexing is not case-sensitive. Thus if a record has the word “Horse” as the
  573. contents of a key field and the first four letters are used as the key then
  574. the entry in the index will be “HORS” and you may search for it by entering
  575. “HORS”, “hors”, “Hors”, “hOrS” etc. 
  576.  
  577. This may not be what you want. If you require indexing to be case sensitive
  578. select the switch labelled Case specific. Forcing to upper case as described
  579. above does not then take place − keys are inserted and strings are searched
  580. for “as is”. The field containing “Horse” will be indexed as “Hors” and only
  581. that precise combination of upper and lower case letters will successfully
  582. find it. Alphanumeric keys will be ordered according to the ASCII values* of
  583. the letters. Since lower-case letters come later in the ASCII table than
  584. upper-case ones a record containing “dog” would appear AFTER one containing
  585. “Horse”, whereas one containing “Dog” would come before “Horse”. 
  586.  
  587. 4.6 Building the empty database
  588.  
  589. Once you are satisfied click Create and blank Database and PrimaryKey files
  590. will be created. The record window is redrawn and you may start entering
  591. data at once.