home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #3 / amigamamagazinepolishissue1998.iso / bazy / datamaster / datamastermanual < prev    next >
Text File  |  1994-12-18  |  67KB  |  1,543 lines

  1.  
  2. ----------------------------------------------------------------------
  3. ----------------------------------------------------------------------
  4. -----                                                            -----
  5. -----                                                            -----
  6. -----                                                            -----
  7. -----                  TS Data Master - Manual                   -----
  8. -----                                                            -----
  9. -----                                                            -----
  10. -----                                                            -----
  11. ----------------------------------------------------------------------
  12. ----------------------------------------------------------------------
  13.  
  14. TS Data Master - Manual (for Version 1.01 04.07.1994)
  15. © 1993, 1994 Teemu Sipilä
  16. All rights reserved  
  17.  
  18. Address:
  19. Teemu Sipilä
  20. Koskitie 25
  21. FIN-12380 Leppäkoski
  22. Finland
  23.  
  24.  
  25. 1. What is Data Master?
  26. ----------------------------------------------------------------------
  27.  
  28. 1.1. Data Master
  29. ----------------
  30.  
  31.     Data Master is a database program programmed for Amiga computers.
  32. It's not the best database program for Amiga (the best shareware data-
  33. base program??), but it's cheap and specially made for the average
  34. user.
  35.     In the program there are five different field types which are
  36. string (text), integer, floating point, type (selection) and boolean
  37. field types. In one record can be up to 256 different fields and the
  38. number of records is practically limited only by the size of the free
  39. memory. Records can be sorted based on eight key fields.
  40.     You can search from the database those records which match search
  41. patterns given by the user (for example, all records whose first 
  42. field's first letter is A). You can also search for text strings from
  43. the whole database. Using Data Master it's possible to print the data-
  44. base for printer or save it as an ASCII file to the disk. Number
  45. fields can be displayed on the screen as graphic diagrams, and using
  46. this function you can simply compare records. There is a separate
  47. field editor for the creating of the fields. Records can be, of
  48. course, moved, copied, deleted or cleared as a single record or as
  49. a block which includes many records. 
  50.     In the following table there are some maximum values used by the
  51. program.
  52.  
  53.  The number of records            99999 (memory limits also)
  54.  The number of fields             256
  55.  The number of alternative texts  256
  56.   (type fields)          
  57.  The length of the field title    13
  58.  The length of the string field   255
  59.  The length of the unit string    9
  60.  The number of key fields         8
  61.  
  62. 1.2. Amiga system
  63. -----------------
  64.  
  65.     Data Master works fine also in the basic Amiga-system (Amiga 500
  66. with KickStart 1.3), it's true, but when using the program with Kick-
  67. Start 1.3, there isn't a file requester. Data Master can be used also
  68. in the NTSC machines, even if, the screen size is smaller than in the 
  69. PAL machines.
  70.     The program is tested in a few different Amiga systems, but the
  71. most of the testing is done by using Amiga 2000 and KickStart 2.0, so
  72. there can be small bugs in other systems. In addition there is, at
  73. this time, one general bug the reason of which is unknown. The program
  74. may cause a guru, if you enter 'ram:' to the directory in the file
  75. requester. 
  76.  
  77.  
  78. 2. Database terms
  79. ----------------------------------------------------------------------
  80.  
  81. 2.1. Basics
  82. -----------
  83.  
  84.     A database includes many records or cards. For example, we can
  85. imagine a address database which includes information about person's
  86. name, address, age and phone number. This entity is a database or
  87. a register. In the database there are records, and for every person
  88. there is it's own record. A record includes fields which are having
  89. different kind of information about the person. In this example the 
  90. fields are person's name, address, age and phone number.   
  91.  
  92. 2.2. Field types
  93. ----------------
  94.  
  95.     Let's look the following example database:
  96.  
  97. NAME:      Mark             
  98. AGE:       22
  99. AGE GROUP: Young
  100. SEX:       Male
  101. WEIGHT:    78.2 kg
  102.  
  103. NAME:      Joanna
  104. AGE:       11
  105. AGE GROUP: Child
  106. SEX:       Female
  107. WEIGHT:    45.5 kg
  108.  
  109. NAME:      Hugo        Field type: String (or text)
  110. AGE:       67                      Integer 
  111. AGE GROUP: Old                     Type (selection)
  112. SEX:       Male                    Boolean  
  113. WEIGHT:    67.0                    Float (floating point number)
  114.  
  115.     In this example there are five fields of different type in one
  116. record. The first field, NAME, is a string field (or text field) which
  117. contains ASCII text.
  118.     The next field, AGE, is a integer number field which can have a
  119. value ranging from -2 147 483 648 to 2 147 483 647. The last field,
  120. WEIGTH, is a floating point number field and it differs from the 
  121. integer field in a fact that the floating point number can contain
  122. also desimals. Note that when using floating point numbers and the
  123. number is big or it has many desimals, the number isn't very accurate.
  124. For example, if you type a number 3344.5566, the program 'rounds' it
  125. to be 3344.556641.
  126.     The third field of the record is called AGE GROUP and it is a type
  127. field (same as a selection field). When you define fields, you have to
  128. give the specific number of alternative texts from which the user 
  129. selects the best one when editing the database. In the example
  130. alternative texts are child, young, adult and old. Using this field
  131. type makes it easier to edit the database, because you have to just
  132. select the best text and you don't have to write the same text many
  133. times. Also if the database is large, using type fields saves memory
  134. and disk space. 
  135.     Nearly the same field type is also a boolean field type which is
  136. the type of the fourth field, SEX. For the boolean field you have to
  137. determine two alternative text from which other one is 'on' and the
  138. other is 'off'. 
  139.  
  140. 2.3. Main field and key fields
  141. ------------------------------
  142.  
  143.     One of the fields, usually the first, is set to be the main field 
  144. of the record. This field can be though as the title of the record.
  145. In our example the main field is naturally NAME. 
  146.    If you want to sort records for alphabetic order, you have to first
  147. set key field(s) which are used by the sort function. For example, if
  148. you want to sort the example database for order on the age, you set
  149. the AGE field to be the key field #1. If there are persons with the
  150. same age, you can set the NAME field to be the key field #2, and then
  151. those persons' mutual order is determined by the alphabetic order of
  152. the names of the persons.
  153.      
  154. 2.4. Field title, explanation and data
  155. --------------------------------------
  156.  
  157.     We can think a field as three different parts which are the field 
  158. title, the field explanation and the field data. In the example data-
  159. base NAME, AGE, AGE GROUP, SEX and WEIGHT are, of course, field 
  160. titles. The field data contains the value of the number field or the
  161. text string of the string field. If you want, you can attach an
  162. explanation to the field. The field explanation should give more
  163. information about the field. For the number field you can also give an
  164. unit which is displayed after the field data on the screen. 
  165.  
  166.  
  167. 3. The user interface
  168. ----------------------------------------------------------------------
  169.  
  170. 3.1. The screen
  171. ---------------
  172.  
  173.     The screen is divided into two parts nearly in the whole program.
  174. These parts are called the message window and the work window. In 
  175. addition many functions open a smaller window above the main screen.
  176.     At the top of the screen there is the message window, and the
  177. program displays messages and questions for the user there. Questions
  178. can be answered depending on the type of the question by ok/no-answer,
  179. by a number or by a text string. Generally you can use also keyboard
  180. for answering. By pressing the <ESC> key you can answer negatively or
  181. cancel the command given earlier. Respectively with the <ENTER> key
  182. you can give a positive answer. If the question asks for a number, you
  183. can reduce and increase the number using the Cursor Left (-) and the
  184. Cursor Right (+) keys.
  185.     In the main program the message window contains also information
  186. about the database, like the current record and the current field.
  187. There are also some gadgets which can be used for moving from one
  188. record to another. 
  189.     The bottom window is called the work window and it is used for
  190. editing records and fields. In the main program there are all fields
  191. of one record and in the field editor there are definition data of one
  192. field. The Diagram function uses this window for showing the diagrams.
  193.  
  194. 3.2. The message window 
  195. -----------------------
  196.     
  197.     In the main program there are two lines of text in the message
  198. window. The lines are displayed as follows:    
  199.  
  200.  Recs: 120 of 230  Flds: 21  B: 26 to 42
  201.  Rec:  4  -  Matching  Fld: 5 - String - KF2 
  202.  
  203.     Two first numbers in the top line tell the number of records. The
  204. latter of these shows the real number and the first one the number of 
  205. available records. As a rule they are equal, but if searhing for the 
  206. record is used, the first number becomes smaller showing the number of
  207. those records which match the search criteria.
  208.     The third number tells the number of fields in one record. The
  209. next two numbers tell the first and the last record of the possible
  210. block. 
  211.     The first section ('Rec: X - Matching') in the bottom line tells
  212. the current record number and information about that, if the record is
  213. matching or unmatching record, when searching is used. If the record
  214. is matching, there is displayed the text 'Matching', and otherwise the
  215. text 'Unmatching' after the record number.
  216.     The rest of the bottom line give information about the current
  217. field. The number in this section shows the current field number and
  218. the text after it tells the field type. At last there is the key field
  219. number ('KFx', where x is ranging from 1 to 8) which is showed only
  220. with the key fields.
  221.  
  222. 3.3. Gadgets of the message window
  223. ----------------------------------
  224.  
  225.     The commands are given in the main program as menu commands which
  226. are explained in the following chapters. There are also 11 arrow
  227. gadgets in the message window in the main program. These gadgets can
  228. be used for moving from one record to another or from one field to
  229. another. They are showed as coarse-featured figures below. 
  230.  
  231.   |<    <<    <    <>    >    >>    >|    H    U    D    E
  232.  
  233.     For every gadget, excluding << and >>, there is also it's own key-
  234. board shortcut which is usable from the Numeric Key pad. In the
  235. following text the gadgets and their shortcuts are explained (first
  236. gadget, then the shortcut, and at last the explanation).
  237.  
  238.   |<    the Numeric Keypad 7  - Go to the first record
  239.   <<                          - Rewind
  240.   <                     NK 4  - Go to the previous record
  241.   <>                    NK 5  - Asks where to go
  242.   >                     NK 6  - Go to the next record
  243.   >>                          - Forward
  244.   >|                    NK 1  - Go to the last record
  245.   H                     NK 9  - Go to the first field      
  246.   U      Cursor Key Up, NK 8  - Go to the previous field 
  247.   D    Cursor Key Down, NK 2  - Go to the next field 
  248.   E                     NK 3  - Go to the last field      
  249.    
  250.     At the left side of the window there is a lift gadget which is
  251. used to scroll the fields when there isn't enough room for all fields
  252. in the same time. 
  253.  
  254.  
  255. 4. Getting started
  256. ------------------
  257.  
  258. 4.1. Running the program
  259. ------------------------
  260.  
  261.     Data Master can be called simply with a double-click when the
  262. mouse pointer is above the icon of Data Master. If you are using
  263. AmigaShell or something like that, you can call the program by opening
  264. the right drawer and running Data Master. For example, as follows:
  265.  
  266.        (stack 32768 <ENTER> (if the program don't work, try this))
  267.        cd DF0:DataMasterDrawer <ENTER> 
  268.        (run) DataMaster <ENTER> 
  269.  
  270.     Then the program opens a window on which the copyright texts are
  271. told with the program version and the registered user. You can go on
  272. by pressing any key.
  273.  
  274. 4.2. Testing
  275. ------------
  276.  
  277.     There are some example data files in the original Data Master 
  278. packet. If you are using the Data Master first time, run the program
  279. as it was told in the part 4.1. Then select the Load Database Menuitem
  280. from the Project Menu. Now you get a list of files in the same drawer
  281. with Data Master. Open the drawer 'Data', and select one of the files
  282. with the '.tdb' identification by pressing two times with the Left
  283. Mouse Button on the filename. After the program has succesfully loaded
  284. the file, you can move in the database by using, for example, the
  285. Arrow Gadgets and the Numeric Keypad.     
  286.  
  287.  
  288. 5. Editing the field data
  289. ----------------------------------------------------------------------
  290.  
  291. 5.1. Basics
  292. -----------
  293.  
  294.     One of the fields showed on the screen is either activated or in 
  295. editing-state. The activated field (the same as the current field)
  296. differs from the others in the fact that the field title is coloured
  297. with white instead of black. Besides this the field number of the
  298. acivated field is showed in the message window. Activation is made by
  299. pressing the Mouse Button on the title of the field or by using the
  300. Arrow Gadgets, the Numeric Keypad or the Cursor Keys.
  301.     One of the fields can also be in editing-state. The title of this
  302. field is coloured with blue. When a field is in editing-state, the
  303. user can change the field data. If you want the field to editing-
  304. state, you have to press the <ENTER> key or press the Mouse Button
  305. on the title of the activated field or on the field data of any field.
  306.  
  307. 5.2. String field
  308. -----------------
  309.  
  310.     If the string field is in editing-state, there is a string gadget
  311. on the place of the field data. Now by changing the string in the 
  312. gadget and by pressing <ENTER> (this is vital), you can change the
  313. field data. 
  314.     When a string field is not in editing-state (but is activated) and
  315. the length of the field data is bigger than the number of columns, you
  316. can scroll the field data using the Cursor Left and the Cursor Right
  317. keys. If it's so, the last letter showed on the screen is coloured
  318. with blue.
  319.  
  320. 5.3. Integer and float fields
  321. -----------------------------
  322.  
  323.     Changing the value of a integer or a floating point field is made
  324. in the same way as changing the data of a string field.
  325.     This can also be done in the other way. First you have to activate
  326. a field. Now by using the Cursor Left and the Cursor Right keys you
  327. can decrease or increase the value of the field. The value is altered
  328. as much as the step value is showing. The step value can be one of the
  329. following values: 1, 10, 100, 1000, 10000, 100 000, 1000 000, 
  330. 10 000 000 or 100 000 000 (for floating point fields also 0.1, 0.01,
  331. 0.001, etc.).
  332.     The step value is set by selecting the Set Step Size Menuitem or 
  333. with the Numeric Keys (not the Numeric Keypad). The menu command asks
  334. for the new value on the message window. This value must be given as
  335. an exponent (for example, if you give 3, the step value will be 10e3=
  336. 1000). Respectively, if you press any Numeric Key from 0 to 8, the
  337. step value will be 10 powered by the corresponding number. If you
  338. press <SHIFT> and any of the Numeric Keys, the step value of float
  339. fields will be 10 powered by minus the corresponding number. Note that
  340. if you want the step value to be 1, press 0 (10e0 = 1). 
  341.      
  342. 5.4. Type and boolean fields
  343. ----------------------------
  344.  
  345.     Altering the data of the type or boolean field can be made in two
  346. ways. The easiest way is to use the Cursor Left and the Cursor Right
  347. keys to select the alternative text, when a field is activated (not in
  348. editing-state).
  349.     If the field is in editing-state, there is a list of the alter-
  350. natives on the place of the field data. Now you can scroll the list
  351. by using the Cursor Left and the Cursor Right keys. You can select a
  352. new alternative text by pressing <ENTER> or by pressing the Left Mouse
  353. Button, when the pointer is pointing to the text in question. 
  354.  
  355. 6. Handling records
  356. ----------------------------------------------------------------------
  357.  
  358. 6.1. Basics
  359. -----------
  360.  
  361.     You can move between records by using the Numeric Key Pad and the
  362. Arrow Gadgets. The commands for handling records can be called from
  363. the Edit and the Block Menus. The Edit Menu includes commands usable
  364. for handling a single record and the Block Menu commands for handling 
  365. record blocks. The commands in the Block Menu are quite simiral to 
  366. those in the Edit Menu, so only the Edit Menu is explained here 
  367. completly.
  368.  
  369. 6.2. Insert
  370. -----------
  371.  
  372.     By using this command you can add a new record between old
  373. records. The number of the records will be then increased by one and
  374. the record number of the new record is same as the record number of
  375. the old current record.
  376.  
  377. 6.3. Delete
  378. -----------
  379.  
  380.     The Delete Menuitem should be called if you want to delete the 
  381. current record. After the command is called, the number of the records
  382. is reduced by one and you can't get the deleted record back in any
  383. way.
  384.  
  385. 6.4. Change
  386. -----------
  387.  
  388.     This function asks at first for the record number of the record
  389. with which the current record will be changed. After this, the places
  390. of these two records will be changed together.
  391.  
  392. 6.5. Move
  393. ---------
  394.  
  395.     This command asks for the place where the current record should be
  396. moved. Then the current record will be moved to the new place and it 
  397. will be deleted from the old place. Note that by using this function
  398. you can't delete any record, just the order of the records is changed.      
  399.    
  400. 6.6. Copy
  401. ---------
  402.  
  403.     This function can be used for copying the field data of the
  404. current record to another record whose number is asked by the
  405. function. Note that the field data of the target record are deleted.
  406.  
  407. 6.7. Clear
  408. ----------
  409.  
  410.     If you select the Clear Menuitem, all fields of the current 
  411. record are cleared. The field data of a string field is totally
  412. deleted and the value of a number field is set to zero (or to the
  413. minimum or to the maximum value). The field data of a type field or a
  414. boolean field is set to point at the first alternative text.
  415.  
  416. 6.8. Number of Records
  417. ----------------------
  418.  
  419.     This command asks for the new number of records. If the new number
  420. is smaller than the old, some records are deleted. If the number of
  421. the records has been increased, all new records are cleared in the
  422. same way as the Clear function does.
  423.  
  424. 6.9. Delete Unedited Records
  425. ----------------------------
  426.  
  427.     This function deletes all those records which are not edited by
  428. the user after the memory allocation or after the use of the Clear
  429. function.
  430.  
  431. 6.10. The Block Menu
  432. -------------------- 
  433.  
  434.     The block can be marked or unmarked by using the two first menu-
  435. items in the Block Menu. The Mark Block function sets the first and
  436. the last record of the block. When it is called first time, the
  437. function sets the current record to be the first record of the block.
  438. Respectively at next time the current record becomes the last record
  439. of the block. If the Clear Block Menuitem is selected, the block is
  440. unmarked.  
  441.     When the block is correctly marked, the user can use also the
  442. other functions located in the Block Menu. These commands are nearly
  443. simiral to the functions located in the Edit Menu and they differ from
  444. the Edit Menu functions in the fact that they affects for the record
  445. block insted of a single record. When using these functions, remember
  446. that if the block is copied, moved or changed with another block, any 
  447. record of the target block is allowed to be inside the source block.
  448.  
  449.  
  450. 7. Sorting and searching
  451. ------------------------
  452.  
  453. 7.1. Sorting
  454. ------------
  455.  
  456.     If you want to sort the records in alphabetic order, you have to
  457. set the key fields before sorting. Based on these fields the program
  458. then sorts the database. The key fields can be set by using the Set
  459. Key Fields command in the Special Menu. At first it asks for the
  460. number of the key fields which can range from zero to eight. Then the
  461. function asks the field number of every key field.
  462.     After the key fields are defined, you can sort the records by
  463. using the Sort Incremental Menuitem or the Sort Decremental Menuitem.
  464. The first one sorts the database in alphabetic order and the latter in
  465. inversed alphabetic order.
  466.  
  467. 7.2. Searching for the specified record
  468. ---------------------------------------
  469.  
  470. 7.2.1. Edit Search Criteria (Filter)
  471. - - - - - - - - - - - - - - - - - - -
  472.  
  473.     If you want to search for the specified record from the database,
  474. you have to at first define the search criteria (in this manual the 
  475. search patterns means the same as the search criteria). The user can
  476. define the criteria for all fields, but it's enough if a criterion is
  477. defined at least for one field. This can be done with the Edit Search
  478. Criteria function callable from the Search Menu.          
  479.     This function opens a screen whose work window is used for showing
  480. the field titles and the search patterns. With the field title in the
  481. same line there is a corresponding search pattern.
  482.     You can clear the search criteria by clicking on the Clear Gadget
  483. or the ClearAll Gadget. If there are more fields than rows in the work
  484. window, the fields can be scrolled with the Lift Gadget placed at the
  485. left side of the message window. When the search patterns are ready,
  486. you can approve the criteria by clicking the OK Gadget. If you want to
  487. cancel the patterns, click on the Cancel Gadget.     
  488.     The search criteria are different depending on the type of the
  489. field. The criteria of the number fields are simple mathematical
  490. formulas and the criteria of other fields are mixed text and wild
  491. cards.  
  492.  
  493. 7.2.2. The search criteria of string, type and boolean fields
  494. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
  495.  
  496. In the following table is a list of the wild cards:
  497.  
  498.      *          = any character or any string or nothing
  499.      ?          = any character
  500.      ~          = anything but
  501.      [abc]      = any character of a, b and c
  502.      (aa|bb|cc) = any string of aa, bb and cc
  503.                   (| (or) = <SHIFT> + <\> in the keyboard)     
  504.  
  505.     A search pattern can contain ordinary text and besides text many
  506. kind of combinations of the wild cards. The Wild card ~ can be
  507. attached to the two lowest wild cards. This means that ~[abc] is a
  508. possible combination, and it matches any character that is not a, b or
  509. c. If you are using the combination ~(aa|bb|cc), remember that the
  510. lengths of aa, bb and cc must be same. Note also that after * there
  511. can't be any of the following wild cards: *, ?, ~. Below is showed
  512. example search patterns and fields which match or not match the
  513. criteria.
  514.  
  515.  CRITERION         MATCH                    DO NOT MATCH
  516.  ---------------------------------------------------------------------
  517.  *house            The red house            Red houses
  518.                    house                    house is beautiful 
  519.  C*r               Computer                 In Computer
  520.  ?isk              Disk                     A Disk             
  521.                    disk                     isk
  522.  [MD]ark           Mark                     Bark
  523.                    Dark                     MDark
  524.  (one|three)       one                      onethree
  525.                    three                    tone
  526.  ~[ab]             c                        a
  527.                    g                        b
  528.                    t                        cg
  529.  ~(NIGH|righ)t     abcdt                    right
  530.                    night                    NIGHT
  531.                    fight                    fit
  532.  
  533. 7.2.3. The search criteria of integer and float fields
  534. - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  535.  
  536.     The criteria of a number field are simple mathematical formulas.
  537. Note that in these formulas you can't use paranthesis'. Remember also
  538. that some of the operators need only and just only one argument
  539. number, but the others need respectively two arguments. Available 
  540. operators are in the following list:
  541.  
  542.     = x      equal to x
  543.     > x      greater than x
  544.     >= x     greater than or equal to x
  545.     < x      lower than x
  546.     <= x     lower than or equal to x
  547.     x << y   greater than x and lower than y
  548.     x <=< y  greater than x and lower than y or equal to x or equal
  549.              to y
  550.     x >> y   lower than x or greater than y
  551.     x >=> y  lower than x or greater than y or equal to x or equal
  552.              to y
  553.     |        or     
  554.  
  555.     Below is showed numbers between -9 and 9 and some example search
  556. patterns. Those numbers which match are marked with *.
  557.  
  558.                          - - - - - - - - -   + + + + + + + + + 
  559.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  560.  
  561. =-4                                * 
  562. <=-3                     * * * * * * * 
  563. >0 | =-2 | =-8             *           *     * * * * * * * * *     
  564. >=5 | -9<<-5               * * *                     * * * * *   
  565. -3<=<3                               * * * * * * *  
  566. -3>>3                    * * * * * *               * * * * * *
  567. -8>=>8 | 0<=<2 | =-6     * *   *           * * *           * *                                  
  568.      
  569.                          9 8 7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 8 9       
  570.                          - - - - - - - - -   + + + + + + + + + 
  571.                      
  572. 7.2.4. Searching functions
  573. - - - - - - - - - - - - - -
  574.  
  575.     After you have defined the search patterns using the Edit Search 
  576. Criteria function, you can separate the matching records from the
  577. others by switching the Show Matching Records Flag in the Search Menu
  578. on. Now you can't look or handle the unmatching records and also the
  579. printing functions ignore those records. Note that when this flag is
  580. on, there are some menu commands that don't work at all. Now if you
  581. want to use all records again, switch the Show Matching Records Flag
  582. off.
  583.     If this flag is on and you have altered the matching records after
  584. switching, you can re-check these records by using the Check Again
  585. command.
  586.     You can inverse the search criteria by selecting the Inverse
  587. Search Criteria Menuitem. After the call of this function, all
  588. matching records become unmatching and vice versa.
  589.     When the search criteria are defined, you can delete all those
  590. records that didn't match the patterns with the Delete Unmatching
  591. Records command.
  592.  
  593. 7.3. Searching for a text string 
  594. --------------------------------
  595.  
  596.     You can also search for a single text string from the database.
  597. This can be done by using the Search String command in the Search
  598. Menu. This function searches all matches of the string starting from
  599. the current field of the current record. After searching, the program
  600. displays that record where the first match was located. If there was 
  601. many matches, you can look for them by using the Search Next String
  602. function.
  603.  
  604.  
  605. 8. Disk operations
  606. ----------------------------------------------------------------------
  607.  
  608. 8.1. File formats
  609. -----------------
  610.  
  611.     The user can create two different kind of data files by using this
  612. database program. The other is used to save the whole database and the
  613. other to save only the field definitions.
  614.     When saving the whole database, the program attach the '.tdb' 
  615. identification to the file name. This file format is not compatible
  616. with any other database file format used by any database program.
  617.     If only the field definitions are saved, the program uses the
  618. '.fld' identification in the file name. Only the Field Editor uses
  619. this file format.
  620.     Besides these two main file formats there are two additional file 
  621. format types. The Save ASCII function and the Form Editor create files
  622. with the '.adb' identification, but these files are actually ordinary
  623. ASCII files. In the Form Editor you can also save the form data by
  624. using the Save Form Data command. The files made by this command have 
  625. the '.form' identification in their names. 
  626.  
  627. 8.2. Load Database
  628. ------------------
  629.  
  630.     All loading and saving functions (if KickStart is 2.0 or greater)
  631. open a window above the main screen. At the middle of the window there
  632. is a box where is a list of files and drawers. With a double-click you
  633. can select a file from the list, and the selected file is then loaded
  634. automatically. At the right side of the box there is the File Lift
  635. Gadget which can be used to scroll files in the box. At the top of the
  636. window there are two string gadgets; in the upper one there is the
  637. title of the drawer and in the lower one the title of the selected
  638. file.
  639.     Below all these there are three command gadgets. By clicking the
  640. Parent Gadget you can move in the root directory one directory back.
  641. If you want to exit the requester without loading anything, press the
  642. Cancel Gadget. To load the file showed in the File String Gadget, you
  643. have to click on the Load Gadget.
  644.     When you are going to load a database from the disk, remember
  645. that you can only load correct files with the '.tdb' identification.
  646. The loading routine itself can be called by selecting the Load
  647. Database Menuitem from the Project Menu. 
  648.     
  649. 8.3. Save Database
  650. ------------------
  651.  
  652.     There are two functions for saving the database in the main
  653. program. The Save Database command, obtainable from the Project Menu,
  654. saves the database using the old filename. If the filename is not 
  655. given, this command is similar to the Save As function.
  656.     The Save As function opens a window familiar with the Load Data-
  657. base function. The only difference is the Load Gadget which is re-
  658. placed with the Save Gadget in the saving routines.  
  659.  
  660. 9. Printing
  661. ----------------------------------------------------------------------
  662.  
  663. 9.1. Show
  664. ---------
  665.  
  666.     If you select the Show Menuitem from the Show Menu, the program
  667. shows the database on the screen one record after another. This
  668. function opens a window where there are six boolean, eight number and
  669. two command gadgets. 
  670.     As it has been mentioned, there are two command gadgets which are
  671. titled OK and Cancel. By clicking the Cancel Gadget the program
  672. returns to the main program and with the OK Gadget the program clears
  673. the screen and shows the database on the whole screen. The database
  674. can be scrolled using the Cursor Keys, the Numeric Keypad and the Left
  675. Mouse Button. You can exit the Show function by pressing the <ESC>
  676. key. The boolean and number gadgets are explained below.
  677.  
  678.  First Record               NUMBER
  679.     The first record which is showed.
  680.  
  681.  Last Record                NUMBER
  682.     The last record which is showed.
  683.  
  684.  First Field                NUMBER
  685.     The first field of every record which is showed.
  686.  
  687.  Last Field                 NUMBER
  688.     The last field of every record which is showed.
  689.  
  690.  Space Record               NUMBER
  691.     The number of empty lines between records.
  692.  
  693.  Space Field                NUMBER
  694.     The number of empty lines between fields.
  695.  
  696.  Max Length                 NUMBER
  697.     The maximum length of one line.
  698.  
  699.  Max Title Len              NUMBER 
  700.     The maximum length of the field title.
  701.  
  702.  Field Title                BOOLEAN FLAG
  703.     Show the field titles.
  704.  
  705.  Field Unit                 BOOLEAN FLAG
  706.     Show the field units.  
  707.  
  708.  Field Number               BOOLEAN FLAG
  709.     Show the field number in the field title.
  710.  
  711.  Record Title               BOOLEAN FLAG
  712.     Show the record title.
  713.  
  714.  Database Title             BOOLEAN FLAG
  715.     Show the database title.
  716.  
  717.  Database Explanation       BOOLEAN FLAG
  718.     Show the field explanation texts at the end.    
  719.  
  720. 9.2. Print
  721. ----------
  722.  
  723.     This function opens a window equal to the window used by the Show
  724. function. After you have set the boolean and number gadgets, you can
  725. start to print by clicking the OK Gadget if the printer is ready for
  726. this. The program uses AmigaDOS for printing, so if you want to change
  727. the Printer Preferences, do it by using Workbench or AmigaDOS.
  728.  
  729. 9.3. Save ASCII
  730. ---------------
  731.  
  732.     With this function you can save the database as an ASCII file. At
  733. first the function opens same kind of window as the Show function. Now
  734. after the OK Gadget is clicked, the program opens a new window which
  735. is a file requester window similar to the window opened by the Save 
  736. Database function. The Save ASCII function creates ASCII files with
  737. the '.adb' identification.
  738.  
  739. 9.4. Diagram
  740. ------------
  741.  
  742.     The Diagram function opens a screen which is used to show the
  743. records as graphic diagrams. At the top of the screen there are five
  744. number, one boolean and one command gadgets. These are explained in
  745. the following text:
  746.  
  747.  Min                        NUMBER
  748.     The miminum value of the scale.
  749.  
  750.  Max                        NUMBER
  751.     The maximum value of the scale.
  752.  
  753.  Step Size                  NUMBER
  754.     The step size of the scale (the default value = (Max-Min)/10).
  755.  
  756.  Title Length               NUMBER
  757.     The maximum length of the record title (= the field data of the
  758.     main field).   
  759.     
  760.  Field                      NUMBER
  761.     The field number of the field used in comparision.
  762.  
  763.  Sort                       SWITCH   
  764.     By clicking on this gadget you can change the sorting status of
  765.     the records (Original Order -> Incremental Sort -> Decremental
  766.     Sort -> Original Order).      
  767.   
  768.  AddNumbs                   BOOLEAN FLAG 
  769.     If this flag is on, the Diagram function shows also the numeric
  770.     value of the field used in comparision.  
  771.  
  772. 9.5. Form Editor
  773. ----------------
  774.  
  775. 9.5.1. The screen
  776. - - - - - - - - - 
  777.  
  778.     This editor can be used for making many kind of forms. The places
  779. of every field's title and data in the form and the length of the
  780. title and data are separately determined by the user. On the basis of
  781. the form data you can show the database on the screen, save it as an
  782. ASCII file or send it to the printer. So we could say, that this
  783. editor is much more advanced than the printing functions located in
  784. the main program.  
  785.     The screen is divided into two parts in the Editor. The upper one
  786. is used for showing and changing the values of the form data. There is
  787. also a lift gadget which can be used to scroll the work window
  788. vertically. You can also scroll it horizontally, which is possibly
  789. with the Cursor Keys and the Numeric Keypad. 
  790.     The messages send by the Editor to the user are displayed on the
  791. screen title bar. When there are no messages, you can see the text
  792. 'ScX: x ScY: y VisW: w VisH: h' on the title bar. Letters x and y in-
  793. dicate the left edge and the top edge of the visible part of the form.
  794. Letters w and h mean the width and the height of the visible part in
  795. characters.
  796.  
  797. 9.5.2. Placing the field in the form
  798. - - - - - - - - - - - - - - - - - - -
  799.  
  800.     At the upper window there are eight number and one boolean gadget
  801. with the lift gadget. The functions of these are explained below.
  802.  
  803.  Field                      NUMBER
  804.     The field number of the field whose location and length of the
  805.     data and the title are displayed.
  806.  
  807.  (Field)                    BOOLEAN FLAG
  808.     (At the left side of the previos gadget)     
  809.     If this flag is on, the current field is a part of the form.
  810.  
  811.  X and Y                    NUMBER
  812.     The coordinates of the field data. These coordinates can also be
  813.     outside that part of the form which is visible (X-max = 255 and
  814.     Y-max = 999).
  815.  
  816.  Width and Height           NUMBER
  817.     The size of the field data. These values can be greater than the
  818.     size of the visible part of the form.
  819.  
  820.  TitleX and TitleY          NUMBER                        
  821.     The coordinates of the field title.
  822.  
  823.  TitleLen
  824.     The maximum length of the field title.
  825.  
  826. 9.5.3. Flags
  827. - - - - - - -
  828.  
  829.     In the Flag Menu there are some boolean flag items and three
  830. command items which are used to change some values. These items are
  831. explained on this part.
  832.  
  833.  Field Unit                 BOOLEAN FLAG
  834.     Show the field units. 
  835.  
  836.  Field Number               BOOLEAN FLAG
  837.     Show the field numbers in the field titles.
  838.  
  839.  Database Title             BOOLEAN FLAG
  840.     Show the database title.
  841.  
  842.  Database Explanation       BOOLEAN FLAG
  843.     Show the database explanation at the end.
  844.  
  845.  Split Words                BOOLEAN FLAG
  846.     If there are more than one line in a string field, you can 
  847.     determine with this flag, if it's permitted to split words to two
  848.     different lines. 
  849.  
  850.  Delete Empty Lines         BOOLEAN FLAG
  851.     Ignore lines which are blank, when printing or showing the data-
  852.     base. This flag don't refer to those empty lines which are ordered
  853.     using the Record Space command.
  854.  
  855.  Field Titles Before Recs   BOOLEAN FLAG
  856.     If this flag is on, the field titles are printed only once and
  857.     before the data of all records. This option can be used to make 
  858.     lists like the following list:
  859.        
  860.        Country:         Population:         Capital:
  861.        
  862.        Finland          4984000             Helsinki
  863.        Sweden           8600000             Stockholm
  864.        Norway           4242000             Oslo   
  865.     
  866.     Load the example database 'EuropeCountries.tdb' and call the Form
  867.     Editor function for more information.  
  868.  
  869.  Set First Record           COMMAND
  870.     This command asks for the record number of the first record which
  871.     should be printed.
  872.  
  873.  Set Last Record            COMMAND
  874.     This function asks for the last record which should be printed. 
  875.  
  876.  Set Record Space           COMMAND
  877.     Asks for the number of empty lines between records.
  878.  
  879. 9.5.4. The Project Menu
  880. - - - - - - - - - - - -
  881.  
  882.     When the form is defined, the user can show the database on the
  883. screen using the Show function placed in the Project Menu. Remember
  884. that when the database is large, it can take quite a long time while
  885. the program is making the print-out. Also large databases need a lot
  886. of memory, and it can be possible, that the showing doesn't work un-
  887. less you make it in smaller parts (by changing the First Record and
  888. the Last Record values).
  889.     If you want to print the database for the printer, select the
  890. Print Menuitem, and the program does this provided that the printer
  891. and AmigaDOS are ready for printing. If you want to change the Printer
  892. Preferences, do it with AmigaDOS.
  893.     The database can be saved as an ASCII file by calling the Save
  894. ASCII function. This function opens a window similar to the window
  895. which is opened by the Save Database function.
  896.     If you select the Save Form Data Menuitem, the program saves the
  897. form data, containing information about the places and sizes of the
  898. fields, to the disk. To the filename is attached the '.form'
  899. identification. Correspondingly you can load a form data file from the
  900. disk using the Load Form Data command.
  901.     The Editor can be leaved by selecting the Exit Menuitem.
  902.    
  903.  
  904. 10. Field Editor
  905. ----------------------------------------------------------------------
  906.  
  907. 10.1. Basics
  908. ------------
  909.  
  910.     When you are making a new database, you have to at first determine 
  911. field definitions. This can be done by using the Field Editor which is
  912. explained in this chapter.
  913.     As mentioned earlier there are five different field types which
  914. are string, integer, float, type and boolean. These are completly de-
  915. scribed in chapter 2.2. In the Editor the user have to determine exact
  916. field definitons which contain field type, title, explanation text,
  917. maximum length of the text, minimum and maximum values, unit and the
  918. alternative texts. However, none of the field types demands all these
  919. information. The maximum number of defined fields is 256, so it should
  920. be enough for larger databases too.   
  921.    
  922. 10.2. The screen and the message window
  923. ---------------------------------------
  924.  
  925.     The screen in the Editor is divided into two part which are the
  926. message window and the definition (work) window. The upper message
  927. window is used for showing the messages sent to the user, and there
  928. are two number gadgets. The definition window contains information
  929. about one field at a time.
  930.     At the bottom of the message window there are two number gadgets
  931. which are titled 'Number of Fields' and 'Field'. The first one of
  932. these tells the number of defined fields. The latter one shows the
  933. field number of the current field whose definitions are displayed at
  934. the definition window.
  935.  
  936. 10.3. Menu commands
  937. -------------------
  938.  
  939.     There are two menus in the Editor. These are the Project Menu and
  940. the Edit Menu. The first one contains general commands, like file
  941. commands, and the latter one functions for handling fields.
  942.     If you want help about the Editor, select the Help Menuitem from
  943. the Project Menu. In the same menu there is the menuitem Load which
  944. activates the loading routine. By using the Save command and the Save
  945. As command you can save the field definitions to the disk as a '.fld' 
  946. file. Both, the Load and the Save As, open a window which is also used
  947. by the file functions of the main program. 
  948.     You can generate and look a list of the fields by calling the Show
  949. Fields function which opens a full-screen window where you can scroll
  950. the list using the Cursor Keys or the Numeric Keypad. Press the <ESC>
  951. key for exit.
  952.     If you are not happy with the field definitions, return to the
  953. main program by selecting the Cancel Menuitem. In the main program
  954. there hasn't happened any changes and you can continue editing the old
  955. database. But if you want to use the field definitions, leave the
  956. Editor by calling the OK command. Now in the main program a new data-
  957. base will be created (however, you can copy the old one to the new
  958. one). 
  959.     With the Delete command, which can be called from the Edit Menu,
  960. you can delete the current field. A new field can be added to the list
  961. by calling the Insert function. The Move function moves the current
  962. field into a new position and the Change function changes the places
  963. of two fields. If you select the Copy Menuitem, the definitions of the
  964. current field are copied to another field. You can clear the 
  965. definitions of one field by using the Clear command, and by calling
  966. the Clear All command this is done for the whole definition table.
  967.     The fields can be sorted for the alphabetic order by calling the 
  968. Sort Incremental function. The same inversed can be done with the Sort
  969. Decremental function. 
  970.  
  971. 10.4. The definition window
  972. ---------------------------
  973.  
  974.     In the lower window there are nine gadgets which contain
  975. information about one field. None of the field types demands all these
  976. gadgets filled, and the title of a gadget is coloured with white when
  977. the corresponding piece of information is necessary and with black
  978. when not. Below are told the functions of all gadgets.
  979.  
  980. <Gadget                     Gadget Type (Field types)>
  981.                       
  982.  Type                       SELECTION (All field types)
  983.     The type of the field can be string, integer, float, type or
  984.     boolean (see chapter 2.2).
  985.  
  986.  Title                      STRING (All field types)
  987.     The title of the field (currently the maximum length is 13 
  988.     characters).
  989.  
  990.  Explanation                STRING (All field types)
  991.     The explanation text which can be up to 255 characters length
  992.     gives more information about the field than the title.
  993.  
  994.  Text Length                NUMBER (String, type and boolean)
  995.     The maximum length of the text.
  996.  
  997.  Min and Max                NUMBER (Integer and float)
  998.     The minimum and the maximum values of the field. If you don't want
  999.     the limitation, write 'N' to the gadget and press <ENTER>, and
  1000.     there appears the text 'No Min' or 'No Max' in the gadget.  
  1001.  
  1002.  Number of Alts             NUMBER (Type, for boolean default=2)
  1003.     With this gadget you can determine the number of the alternative
  1004.     texts. There can be up to 256 alternatives, but remember that
  1005.     when the type is boolean, the number of alternatives is always
  1006.     two.
  1007.  
  1008.  Alt.Text No.               NUMBER/STRING (Type and boolean)
  1009.     Using this gadget pair you can give the alternative texts. By 
  1010.     using the number gadget select the text number. Now edit the
  1011.     corresponding alternative text in the string gadget. When you
  1012.     press <ENTER> in the string gadget, the program automatically goes
  1013.     to the next alternative text. 
  1014.  
  1015.  Unit                       STRING (Integer and float)
  1016.     The unit of a field can be, for example, the unit of the
  1017.     physical quantity, like m (metre) or kg (kilogramm).
  1018.  
  1019. 10.5. How to define a database?
  1020. -------------------------------
  1021.  
  1022.     In this chapter is told in single phases, how you can define a new
  1023. database.
  1024.    
  1025.  1. Call the Data Master (see chapter 4.1).
  1026.  2. Select the Field Editor Menuitem from the Project Menu.
  1027.  3. Type the number of the fields in the Number of Fields Gadget and
  1028.     press the <ENTER> key. Now there is the first field of the data-
  1029.     base on the screen and you can start editing it as below is
  1030.     advised.
  1031.  4. Select the type of the field with the Type Gadget. The possible
  1032.     types are, like earlier, titled 'String', 'Integer', 'Float',
  1033.     'Type' and 'Boolean'. 
  1034.  5. Enter the field title in the Title Gadget and press <ENTER>
  1035.  6. Write the field explanation in the Explanation Gadget and press
  1036.     <ENTER>.
  1037.  7. If the type is string, set the maximum length of the field data
  1038.     by using the Text Length Gadget.
  1039.  8. If the type is integer or float, ...
  1040.     8.1. Write the minimum and the maximum values in gadgets Min and
  1041.          Max and confirm with the <ENTER>. If you don't want the
  1042.          limitation, type 'N' in the gadget. Now on this gadget
  1043.          appears a text 'No Min' or 'No Max'.
  1044.     8.2. Type the field unit in the Unit Gadget.
  1045.  9. If the type is type or boolean, ...
  1046.     9.1. Set the maximum length of one piece of text with the Text
  1047.          Length Gadget.
  1048.     9.2. Determine the number of the alternatives by using the Number
  1049.          of Alts Gadget if the field type is type. 
  1050.     9.3. Select one of the alternative texts with the Alt.Text No
  1051.          Gadget.
  1052.     9.4. Write the respective text in the string gadget at the right
  1053.          side of the Alt.Text No Gadget and press the <ENTER> key.
  1054.     9.5. Move to the next alternative text (go back to section 9.3),
  1055.          until all texts are given.
  1056.  10. Select the next field with the Field Gadget, and go to section 4.
  1057.  11. After you have defined all fields correctly (remember to confirm
  1058.      definitions with the <ENTER> key), select the OK Menuitem from
  1059.      the Project Menu, and the program returns to the main program.
  1060.  12. Now the program asks for the estimated number of records, and 
  1061.      then the program allocates memory for these.
  1062.  13. If there wasn't enough memory, the program returns to the section
  1063.      12.
  1064.  14. If there was an old database before calling the Editor, the
  1065.      program asks if you want to copy the old database to the new
  1066.      database. If you don't want or if there wasn't any old database, 
  1067.      jump to the section 16.
  1068.  15. Now you are asked if you want that the program copies the old
  1069.      database to the new one considering the field titles. If you
  1070.      answer negatively, this is done so that the data of the old field
  1071.      number x is copied to the new field number x. Otherwise, the 
  1072.      program copies only those fields that have same titles in both,
  1073.      old and new, databases.
  1074.  16. Now the definitions should be ready, and you can start to edit
  1075.      the records itselves...
  1076.  
  1077. 10.6. How to change the definitions?
  1078. ------------------------------------
  1079.  
  1080. 10.6.1. Basics
  1081. - - - - - - - -
  1082.  
  1083.     It is usual that when the user have defined and edited a database,
  1084. it becomes necessary to change the field definitions or the order of
  1085. the fields.
  1086.     If you want to change the definitions, you have to at first load
  1087. the database in question. After this, call the Field Editor and change
  1088. the field definitions as explained in this chapter earlier. When you
  1089. have finished changing, return to the main program by selecting the OK
  1090. Menuitem.
  1091.     Now the program asks for the number of records; use the same
  1092. number as used with the old database. After this you are asked if you
  1093. want to keep the data of the old database; answer positively. At last
  1094. Data Master wants to know if you want to copy the fields considering
  1095. the field titles. After this question has been answered the program
  1096. proceeds the transfer of data from the old database to the new one.
  1097.  
  1098. 10.6.2. Changing field titles and limitations
  1099. - - - - - - - - - - - - - - - - - - - - - - -
  1100.  
  1101.     You can change field titles, explanations and limitatios following
  1102. the instructions on the previous part. You have to just remember that  
  1103. you should't change the order of the fields and that you have to
  1104. answer the last question negatively. With some restrictions you can
  1105. also change the type of the field so that the field data is saved
  1106. (any type -> string, integer <-> float, boolean -> type).
  1107.  
  1108. 10.6.3. Changing the order of the fields
  1109. - - - - - - - - - - - - - - - - - - - - 
  1110.  
  1111.     Also changing of the order can be made using the instructions 
  1112. explained on the part 10.6.1. This time you have to remember that you
  1113. are not permitted to change the field titles and that you have to give
  1114. a positive answer for the last question. If you want, you can also re-
  1115. move old fields or define new ones by using this same method.
  1116.  
  1117. 11. Other functions
  1118. ----------------------------------------------------------------------
  1119.  
  1120. 11.1. Settings
  1121. --------------
  1122.  
  1123.     The settings or the preferences, containing information like the
  1124. colours and the alphabets, can be changed by using the Settings
  1125. function. This function opens a window with some gadgets. These are
  1126. explained below.
  1127.     
  1128.  Alphabet                   SELECTION/STRING
  1129.     With this gadget pair you can set the alphabet. There are some
  1130.     default alphabet strings in the memory, but you can edit any of
  1131.     them so that you can sort the database made in any language
  1132.     correctly. With the selection gadget you can take any of the
  1133.     default strings to the string gadget. You can edit the current
  1134.     string by clicking on the gadget and by writing a new string. If
  1135.     you want that two letters have the same precedence, type an
  1136.     equation sign between them (like 'A=a B=b C=c ...').
  1137.  
  1138.  Colours                    PROPORTIONAL (4*3=12 gadgets)
  1139.     You can change the screen colours by using the proportional
  1140.     gadgets. There are three colour component (R=Red, G=Green and B=
  1141.     Blue) gadgets for all four colours.
  1142.  
  1143.  ShowUnit                   BOOLEAN
  1144.     If this is on, the possible unit is displayed on the main screen.
  1145.  
  1146.  ShowFNum                   BOOLEAN
  1147.     Attach the field number to the field title. 
  1148.   
  1149.  Cancel                     COMMAND
  1150.     Exit the Settings function.
  1151.  
  1152.  Use                        COMMAND
  1153.     Exit the Settings function and use new preferences.
  1154.  
  1155.  Save&Use                   COMMAND
  1156.     Exit the Settings function and save and use new preferences.
  1157.  
  1158.  Default                    COMMAND
  1159.     Return the original preferences.
  1160.  
  1161. 11.2. Edit Title Page
  1162. ---------------------
  1163.  
  1164.     The title page contains information about the database, like the
  1165. title, the author, the copyright text, the version, the first version
  1166. and if given the comment. This page is used by the showing and
  1167. printing functions if the Database Title Flag is on.    
  1168.     You can change this data by selecting the Edit Title Page Menu-
  1169. item. This function opens a window which is familiar with the window
  1170. used by the Edit Search Criteria function. When you have entered all
  1171. data, press the OK gadget. If you want to restore the old data, press
  1172. the Cancel gadget.
  1173.  
  1174. 11.3. Edit Explanation Page
  1175. ---------------------------
  1176.  
  1177.     Normally the field explanations are given already in the Field
  1178. Editor, but if you want, you can edit them afterwards by using the
  1179. Edit Explanation Page function.
  1180.     Also this function uses same kind of window like the Edit Search
  1181. Criteria function, so this is enough about this function.
  1182.  
  1183. 11.4. Reset
  1184. -----------
  1185.   
  1186.     If you want to clear all system (Data Master, not AmigaDOS)
  1187. variables, call the Reset function. For example, after the use of the
  1188. function the first record becomes the current record and the first
  1189. field of it becomes the current field. The function also redraws the
  1190. screen, so it's useful to call this function if something have messed
  1191. the screen.
  1192.  
  1193. 11.5. Status
  1194. ------------
  1195.  
  1196.     This command opens a window which is used to display some system
  1197. variables, like the number of records, the current record and the
  1198. block status.
  1199.  
  1200. 11.6. Set Main Field
  1201. --------------------
  1202.  
  1203.     With this menu command you can set for the main field any one of
  1204. the fields. The main field differs from the others on the screen in
  1205. the fact that the field title is underlined. The purpose of the main
  1206. field is that, that the record can be recognized by the main field. 
  1207.  
  1208.  
  1209. Appendices
  1210. ----------------------------------------------------------------------
  1211.  
  1212. Appendix 1 - Gadgets and Menus in the main program
  1213. --------------------------------------------------
  1214.  
  1215.   The Arrow Gadgets
  1216.   - - - - - - - - - 
  1217.   |<    the Numeric Keypad 7  - Go to the first record
  1218.   <<                          - Rewind
  1219.   <                     NK 4  - Go to the previous record
  1220.   <>                    NK 5  - Asks where to go
  1221.   >                     NK 6  - Go to the next record
  1222.   >>                          - Forward
  1223.   >|                    NK 1  - Go to the last record
  1224.   H                     NK 9  - Go to the first field      
  1225.   U      Cursor Key Up, NK 8  - Go to the previous field 
  1226.   D    Cursor Key Down, NK 2  - Go to the next field 
  1227.   E                     NK 3  - Go to the last field      
  1228.   
  1229.  
  1230.  The Project Menu
  1231.  - - - - - - - - -
  1232.  New Database               n - Open a new database
  1233.  Load Database              l - Load the database from the disk drive
  1234.  Save Database              s - Save the database with the old name
  1235.  Save As                    a - Save the database with the new name
  1236.  Field Editor               f - Call the Field Editor
  1237.  Settings                   p - Change the program preferences
  1238.  Help                       y - Show this text
  1239.  About                      A - Tell about the program and the author
  1240.  Quit                <ESC>, q - Exit the program  
  1241.  
  1242.  The Edit Menu
  1243.  - - - - - - -
  1244.  Insert                     i - Insert a new record
  1245.  Delete                     d - Delete the current record
  1246.  Change                     h - Change the places of two records
  1247.  Move                       m - Move the current record to a new
  1248.                                 position
  1249.  Copy                       c - Copy the record data to another record
  1250.  Clear                      j - Clear the record
  1251.  Number of Records          U - Change the Number of the Records
  1252.  Delete Unedited Records    E - Delete the unused/unedited records
  1253.  
  1254.  The Block Menu
  1255.  - - - - - - - -
  1256.  Mark Block                 b - Set the block begin/end
  1257.  Unmark Block               B - Unset the block
  1258.  Delete Block               D - Delete the block records
  1259.  Change Block               H - Change the block with another one
  1260.  Move Block                 M - Move the block to a new position
  1261.  Copy Block                 C - Copy the block records to another
  1262.                                 block
  1263.  Clear Block                J - Clear the block records
  1264.  
  1265.  The Search Menu
  1266.  - - - - - - - - 
  1267.  Search String              S - Search for a string
  1268.  Search Next String         N - Go to the next string searched earlier
  1269.  Edit Search Criteria       e - Change the search criteria
  1270.  Show Matching Records      r - Show only the matching records (or 
  1271.                                 'Show all records', a switch item)
  1272.  Check Again                R - Check the matching records again
  1273.  Inverse Search Criteria    v - Inverse the search criteria 
  1274.  Delete Unmatching Records  u - Delete the unmatching records
  1275.  
  1276.  The Show Menu
  1277.  - - - - - - -
  1278.  Print                      P - Print the database for the printer
  1279.  Show                       o - Show the database on the screen
  1280.  Save ASCII                 V - Save the database as an ASCII file
  1281.  Diagram                    g - Compare records graphically
  1282.  Form Editor                G - Call the Form Editor
  1283.  
  1284.  The Special Menu
  1285.  - - - - - - - - -
  1286.  Set Key Fields             F - Set the key fields for sorting
  1287.  Sort Incremental           z - Sort the records in alphabetic order
  1288.  Sort Decremental           Z - Sort the records in inversed alpha-
  1289.                                 betic order
  1290.  Edit Title Page            t - Edit the title page
  1291.  Edit Explanation Page      x - Edit the field explanations
  1292.  Show Field Explanation     X - Show the field explanation
  1293.  Set Main Field             k - Set the main field
  1294.  Set Step Size              T - Set the step size exponent (for
  1295.                                 example, give 2, step size = 10e2=100)
  1296.  Status                     w - Show the program status
  1297.  Reset                      W - Reset the program
  1298.  
  1299. Appendix 2 - Gadgets and Menus in the Field Editor
  1300. --------------------------------------------------
  1301.   
  1302.  The Project Menu
  1303.  - - - - - - -
  1304.  Load                       l - Load the field definitions file
  1305.  Save                       s - Save the field definitions with the
  1306.                                 old name
  1307.  Save As                    a - Save the field definitions with the
  1308.                                 new name
  1309.  Show Fields                o - Show the fields as a list
  1310.  Help                       y - Give help about the Editor
  1311.  OK                         O - OK with the definitions and exit to
  1312.                                 the main program
  1313.  Cancel                     C - Cancel the definitions and exit
  1314.  
  1315.  The Edit Menu
  1316.  - - - - - - -
  1317.  Insert                     i - Insert a new field
  1318.  Delete                     d - Delete the current field
  1319.  Change                     h - Change the places of two fields
  1320.  Move                       m - Move the current field to a new place
  1321.  Copy                       c - Copy the definitions of the current
  1322.                                 field to another field
  1323.  Clear                      j - Clear the definitions of the current 
  1324.                                 field
  1325.  Clear All                  J - Clear all field definitions
  1326.  Sort Incremental           z - Sort the fields in alphabetic order
  1327.  Sort Decremental           Z - Sort the fields in inversed alphabetic
  1328.                                 order
  1329.  
  1330.  Gadgets in the message window
  1331.  - - - - - - - - - - - - - - -
  1332.  Number of Flds               - The number of the fields
  1333.  Field                        - The current field whose definitions
  1334.                                 are displayed on the definition window
  1335.  
  1336.  Gadgets in the definition window
  1337.  - - - - - - - - - - - - - - - - -
  1338.  Type                         - The field type (String, Integer,
  1339.                                 Float, Type or Boolean)
  1340.  Title                        - The field title (max. 13 characters)
  1341.  Explanation                  - The field explanations
  1342.  Text Length                  - The maximum length of text with 
  1343.                                 string, type and boolean fields
  1344.  Min                          - The minimum value of a number field
  1345.  Max                          - The maximum value of a number field
  1346.  Number of Alts               - The number of alternative texts
  1347.  Alt. Text No.                - The alternative text number
  1348.  Unit                         - The unit of a number field
  1349.  
  1350. Appendix 3 - Gadgets in the file functions 
  1351. ------------------------------------------
  1352.  
  1353.  Directory                    - The open drawer
  1354.  File                         - The selected file
  1355.  Parent                     p - Return one drawer back in the root
  1356.                                 directory
  1357.  Cancel                 <ESC> - Exit without any operations
  1358.  Load/Save            <ENTER> - Alternatively load or save
  1359.  
  1360. Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1361.              Page and the Edit Explanation Page functions
  1362. ----------------------------------------------------------------
  1363.  
  1364.  Clear                       j - Clear the current line
  1365.  ClearAll                    J - Clear all lines
  1366.  Cancel                  <ESC> - Exit canceling the changes 
  1367.  OK                          O - Exit 
  1368.  
  1369. Appendix 5 - The Print, the Show and the Save ASCII functions
  1370. -------------------------------------------------------------
  1371.  
  1372.  First Record                  - The first record in the print-out
  1373.  Last Record                   - The last record in the print-out
  1374.  First Field                   - The first field in the print-out 
  1375.  Last Field                    - The last field in the print-out
  1376.  Space Record                  - The number of empty lines between
  1377.                                  records
  1378.  Space Field                   - The number of empty lines between
  1379.                                  fields
  1380.  Max Length                    - The maximum length of the field title
  1381.                                  and explanation
  1382.  Max Title Len                 - The maximum length of the field title
  1383.  Field Title                   - Show the field title in the print-out
  1384.  Field Unit                    - Attach the unit to the field data
  1385.  Field Number                  - Attach the field number to the title
  1386.  Record Title                  - Show the record title 
  1387.  Database Title                - Show the title page
  1388.  Database Explanation          - Show the field explanations 
  1389.  Cancel                  <ESC> - Exit without any operations
  1390.  OK                    <ENTER> - Print, show or save the database
  1391.  
  1392. Appendix 6 - Gadgets in the Diagram function
  1393. --------------------------------------------
  1394.  
  1395.  Min                           - The minimum value of the scale
  1396.  Max                           - The maximum value of the scale
  1397.  Step Size                     - The step size of the scale
  1398.  Title Length                  - The maximum length of the record
  1399.                                  title
  1400.  Field                         - The field used in comparision (only
  1401.                                  number fields)
  1402.  Sort                        z - Sort the records 
  1403.  AddNumbs                      - Display the field values as numbers
  1404.                                  too
  1405.  
  1406. Appendix 7 - Gadgets in the Settings function 
  1407. ---------------------------------------------
  1408.  
  1409.  Alphabet                      - The language of alphabet and the 
  1410.                                  alphabet string
  1411.  Colours                       - The colour gadgets
  1412.  Cancel                  <ESC> - Exit without any operations
  1413.  Use                         O - Exit and use new settings
  1414.  Save&Use              <ENTER> - Exit, and save and use new settings
  1415.  Default                     d - Return the default settings
  1416.  ShowUnit                      - Attach the unit to the field data
  1417.  ShowFNum                      - Attach the field number to the title
  1418.  
  1419. Appendix 8 - Gadgets and Menus in the Form Editor
  1420. -------------------------------------------------
  1421.  
  1422.  The Project Menu
  1423.  - - - - - - - - -
  1424.  Print                       P - Print the database for the printer
  1425.  Show                        o - Show the database on the screen
  1426.  Save ASCII                  V - Save the database as an ASCII file
  1427.  Load Form Data              a - Load the form data file
  1428.  Save Form Data              A - Save the form data to the disk
  1429.  Exit                        q - Exit the Editor
  1430.  
  1431.  The Flags Menu
  1432.  - - - - - -
  1433.  Field Unit                  u - Attach the unit to the field data
  1434.  Field Number                n - Attach the field number to the title
  1435.  Database Title              t - Show the database title
  1436.  Database Explanation        e - Show the field explanations
  1437.  Split Words                 s - Allow the program to split words on
  1438.                                  two lines
  1439.  Delete Empty Lines          d - Delete empty lines from the print-out
  1440.  Field Titles Before Recs    b - The field titles are showed only
  1441.                                  once and before the records 
  1442.  Set First Record            f - Set the first record
  1443.  Set Last Record             l - Set the last record
  1444.  Set Record Space            c - Set the number of empty lines between
  1445.                                  records
  1446.  
  1447.  Gadgets
  1448.  - - - -
  1449.  Field                         - The current field
  1450.  X, Y                          - The coordinates of the field data
  1451.  Width                         - The width of the field data
  1452.  Height                        - The height of the field data 
  1453.  TitleX, TitleY                - The coordinates of the field title
  1454.  TitleLength                   - The length of the field title
  1455.  
  1456.  
  1457. Table of Contents
  1458. ----------------------------------------------------------------------
  1459.  
  1460. 1. What is Data Master
  1461.    1.1. Data Master
  1462.    1.2. Amiga system
  1463. 2. Database Terms
  1464.    2.1. Basics
  1465.    2.2. Field types
  1466.    2.3. Main field and key fields
  1467.    2.4. Field title, explanation and data
  1468. 3. The user interface
  1469.    3.1. The screen
  1470.    3.2. The message window
  1471.    3.3. Gadgets of the message window
  1472. 4. Getting started
  1473.    4.1. Running the program
  1474.    4.2. Testing 
  1475. 5. Editing the field data
  1476.    5.1. Basics
  1477.    5.2. String field
  1478.    5.3. Integer and float fields
  1479.    5.4. Type and boolean fields
  1480. 6. Handling records
  1481.    6.1. Basics
  1482.    6.2. Insert
  1483.    6.3. Delete
  1484.    6.4. Change
  1485.    6.5. Move
  1486.    6.6. Copy
  1487.    6.7. Clear
  1488.    6.8. Number of Records
  1489.    6.9. Delete Unedited Records
  1490.    6.10. The Block Menu
  1491. 7. Sorting and searching
  1492.    7.1. Sorting
  1493.    7.2. Searching for the specified record
  1494.         7.2.1. Edit Search Criteria (Filter)
  1495.         7.2.2. The search criteria of string, type and boolean fields
  1496.         7.2.3. The search criteria of integer and float fields
  1497.         7.2.4. Searching functions
  1498.    7.3. Searching for a text string
  1499. 8. Disk operations
  1500.    8.1. File formats
  1501.    8.2. Load Database
  1502.    8.3. Save Database
  1503. 9. Printing
  1504.    9.1. Show
  1505.    9.2. Print
  1506.    9.3. Save ASCII
  1507.    9.4. Diagram
  1508.    9.5. Form Editor
  1509.         9.5.1. The screen
  1510.         9.5.2. Placing the field in the form
  1511.         9.5.3. Flags
  1512.         9.5.4. The Project Menu
  1513. 10. Field Editor
  1514.    10.1. Basics
  1515.    10.2. The screen and the message window
  1516.    10.3. Menu commands
  1517.    10.4. The definition window
  1518.    10.5. How to define a database?
  1519.    10.6. How to change the definitions
  1520.          10.6.1. Basics
  1521.          10.6.2. Changing field titles and limitations
  1522.          10.6.3. Changing the order of the fields
  1523. 11. Other functions
  1524.    11.1. Settings
  1525.    11.2. Edit Title Page
  1526.    11.3. Edit Explanation Page
  1527.    11.4. Reset
  1528.    11.5. Status
  1529.    11.6. Set Main Field
  1530. Appendices
  1531.    Appendix 1 - Gadgets and Menus in the main program
  1532.    Appendix 2 - Gadgets and Menus in the Field Editor
  1533.    Appendix 3 - Gadgets in the file functions
  1534.    Appendix 4 - Gadgets in the Edit Search Criteria, the Edit Title
  1535.                 Page and the Edit Explanation Page functions
  1536.    Appendix 5 - The Print, the Show and the Save ASCII functions
  1537.    Appendix 6 - Gadgets in the Diagram function
  1538.    Appendix 7 - Gadgets in the Settings function
  1539.    Appendix 8 - Gadgets and Menus in the Form Editor 
  1540. Table of Contents 
  1541.  
  1542.  
  1543.