home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / TECLADO / PROKEY4.ZIP / DB.DOC < prev    next >
Encoding:
Text File  |  1985-09-12  |  8.3 KB  |  221 lines

  1.  
  2.                 dBaseII ProKey Starter Set
  3.  
  4.  
  5. As you know, ProKey comes with a file of macros designed for use 
  6. with dBase II.  That file is named DB.PRO.  
  7.  
  8. To learn how to use DB.PRO, we suggest you follow these steps:  
  9.  
  10.   -  Print this file (DB.DOC) so you have a reference sheet 
  11.      available while you're learning.  
  12.  
  13.   -  Print DB.PRO so that you can see how ProKey macros look
  14.      in a file.  
  15.  
  16.   -  Compare the descriptions in this file with the actual
  17.      macros in DB.PRO, to get an idea of how commands are combined
  18.      to perform specific tasks.  
  19.  
  20.  
  21. To use the macros in DB.PRO, follow these steps:  
  22.  
  23.   -  Install ProKey using PKLOAD.
  24.  
  25.   -  Go to the DOS command prompt A>.
  26.  
  27.   -  Place a diskette containing PROKEY.COM and DB.PRO in the
  28.      A> drive.  
  29.  
  30.   -  Type:     prokey db.pro/r
  31.  
  32.   -  Load dBase II.  
  33.  
  34. Please refer to the Users Guide if you need help with any of these
  35. steps.  
  36.  
  37. You can copy PROKEY.COM and DB.PRO onto any diskette or your hard
  38. disk if you like.  
  39.  
  40.  
  41. ********************************************************************
  42.  
  43. Hints on Using ProKey with dBase II
  44.  
  45. ProKey can be used with dBaseII to type commands, change editing
  46. keys, fill in fields and facilitate the creation of command files.  
  47. The macros in this file are mainly of the customizing keyboard type, 
  48. i.e. they assign simple strings to single keystrokes.  
  49.  
  50. As a user of dBaseII you can easily imagine how useful it would be to
  51. link commands together.  For example, the procedure to modify the
  52. structure of a file could be made into a macro.  The commands to 
  53. locate a particular record, display it, and edit it could all be linked.
  54. And while command files could be created to perform such tasks, it's
  55. often easier to create ProKey macros while you work, with variable
  56. fields for filling in field or file names.
  57.  
  58. ProKey is especially good for filling in the fields as you enter
  59. data.  With one keystroke you can fill in a city, state and zip code.
  60. And a fixed field as part of a zip code lets you use the same macro
  61. for all zips with the same first two or three digits.  Part numbers
  62. and descriptions, dates, anything that is repetitively entered into
  63. your database can become a macro.  
  64.  
  65. ProKey is also extremely useful if you write dBaseII programs.  Many
  66. constructs are used quite repetitively.  These can all be made into
  67. macros; your typing will be much reduced.
  68.  
  69. Experiment, and you will find many ways for ProKey to
  70. help you deal more efficiently and effectively with dBaseII.
  71.  
  72. ********************************************************************
  73.  
  74. One Word of Caution
  75.  
  76. dBaseII has a habit which you need to be aware of when you create
  77. your own macros.  dBaseII has the tendency to throw away
  78. characters while the disk is spinning or it is processing other
  79. commands.  This means it asks for a character from the keyboard
  80. and then tosses it out instead of saving it.  You may have
  81. noticed this if you try to type "use filename" before dBaseII
  82. presents you with the "." prompt or if you type ahead while other
  83. processes are occurring.
  84.  
  85. So if you create a macro which contains several commands and
  86. suspect that dBaseII is throwing away characters before they
  87. are executed, there are several things you can try.  First, be
  88. sure that ProKey is executing in the Slow Mode.  Second, you 
  89. can edit your macros, and insert delays after commands which
  90. you know take dBaseII a while to execute.  You will need to 
  91. experiment to discover how long a delay is required.  
  92.  
  93. We also suggest that you write to Ashton-Tate, to let them know
  94. that you are concerned with this problem of thrown away characters.  
  95.  
  96. *********************************************************************
  97.  
  98. The following macros have assigned commands to various keys.
  99. Because dBaseII commands are so dependent on information that
  100. varies (names of files and fields, expressions and functions) these
  101. Starter Set macros are fairly general.  When variable fields are
  102. used these can easily be replaced with specific field names, 
  103. filespecs and the like.  
  104.  
  105. If you wish, you may assign the macros you use most often to the
  106. function keys.  To do this, edit DB.PRO and change the key name.  
  107. The Users Guide tells how to edit macro files with your editor.  
  108.  
  109. Using and manipulating files:
  110.  
  111. <altu>  This macro types the command "use"; you supply the filename.
  112.         The filename is automatically saved as the definition of
  113.         macro <f1>.  So the next time you want to refer to the name 
  114.         of the file in use, just press <f1> and ProKey will type 
  115.         the name.  
  116.  
  117. <f1>    holds the filename currently in use.  (You must have 
  118.         previously defined it using <altu>.
  119.  
  120. <f2>    types the word index
  121.  
  122. <f9>    saves the changes made in a record or file and returns to
  123.         the command mode (analagous to ctrlw)
  124.  
  125. <f10>   aborts any changes made and returns you to the command mode
  126.         (ctrlq)
  127.  
  128. <home>  moves you to the top of a file (using the go top command)
  129.  
  130. <end>   moves you to the bottom of a file (using the go bottom command)
  131.  
  132. <ctrlbks> acts as a destructive backspace.  The backspace key was not
  133.         chosen for this function because although this change will 
  134.         work fine when entering data, it will not work at the command
  135.         level.
  136.  
  137. <tab>   defines the tab key as five blanks.  
  138.  
  139. <altc>  copies the fields of one file to another. 
  140.         The fields to be copied can be limited by some expression.
  141.         copy to ___ fields ___  for ___
  142.  
  143. <altl>  looks for a certain record with the "locate" command: 
  144.         locate ___ for ___ = '___'
  145.  
  146. <ctrll> continue
  147.  
  148. <altr>  prepares a report when given the report form name and a
  149.         limiting expression
  150. <alts>  sums the contents of a field for a given time span. 
  151.         E.g. sum the contents of the field total sold between
  152.         Jan 1st and March 31st.  You may need to change the
  153.         fieldname "date" and the delimiting "/" to correspond to
  154.         your own way of designating the date.  
  155.  
  156. <altt>  totals on a key field and places the results in a database
  157.         (see page 59 of your dBase manual): 
  158.         total on ___ to ___ for ___
  159.  
  160. <altm>  use this macro to modify the structure of a database.
  161.         At the pause after "use" fill in the filename of the 
  162.         database you wish to modify.  The macro will copy its
  163.         structure to a file named temp; use temp; and modify
  164.         structure.  It answers yes to the proceed question.
  165.         It then enters a variable field.  This gives you an
  166.         opportunity to modify the structure of the file.  Because
  167.         <enter> is used to note the end of a field, use the down
  168.         arrow or an escape enter <`enter> to move around during
  169.         your editing.  When you do type <enter>, the changes you
  170.         made will be saved and the records appended from the
  171.         original file to the temp file.  You may then rename the
  172.         temp file as your original file or copy the records back to
  173.         the original file.
  174.  
  175. Browsing:
  176.  
  177. <altb>  browse
  178.  
  179. <ctrlpgu> when you are in the browse mode this key will pan the 
  180.         window one field right.  
  181.  
  182. <ctrlpgd> when in the browse mode this pans the window one field left.  
  183.  
  184. <ctrlrgt>  when in browse mode this key moves to the next data field.  
  185.  
  186. <ctrllft>  backs up to the previous data field when browsing.  
  187.  
  188. (ins>   acts as a toggle for inserting (ctrl v).  
  189.  
  190. <delâ•›   acts as the delete record toggle (ctrl u).  
  191.  
  192. <f9>    saves the changes made in a record or file and returns to
  193.         the command mode (analagous to ctrlw).  
  194.  
  195. <f10>   aborts any changes made and returns you to the command mode
  196.         (ctrlq).  
  197.  
  198. Commands and Programming constructs:
  199.  
  200. <alte>  endif 
  201.  
  202. <altw>  do while
  203.  
  204. <altf>  the command to display files like *.xxx where you
  205.         fill in the xxx (e.g. with prg, frm, etc.)
  206.  
  207. <alt2>  the structure used to display specific formatted information 
  208.         on the screen or printer using "@ coordinates say 'something'".
  209.         Use in conjunction with "set format to ..."
  210.  
  211. <f5>    sets some parameter ON.  
  212.  
  213. <f6>    sets some parameter OFF.  
  214.  
  215. <f7>    sets the default drive.  
  216.  
  217. <f8>    sets the format to xxx, xxx being printer or screen.  
  218.  
  219. <altd>  an easy way to type the date: 85/  /  ; you fill in the month
  220.         and the day.
  221.