home *** CD-ROM | disk | FTP | other *** search
-
- dBaseII ProKey Starter Set
-
-
- As you know, ProKey comes with a file of macros designed for use
- with dBase II. That file is named DB.PRO.
-
- To learn how to use DB.PRO, we suggest you follow these steps:
-
- - Print this file (DB.DOC) so you have a reference sheet
- available while you're learning.
-
- - Print DB.PRO so that you can see how ProKey macros look
- in a file.
-
- - Compare the descriptions in this file with the actual
- macros in DB.PRO, to get an idea of how commands are combined
- to perform specific tasks.
-
-
- To use the macros in DB.PRO, follow these steps:
-
- - Install ProKey using PKLOAD.
-
- - Go to the DOS command prompt A>.
-
- - Place a diskette containing PROKEY.COM and DB.PRO in the
- A> drive.
-
- - Type: prokey db.pro/r
-
- - Load dBase II.
-
- Please refer to the Users Guide if you need help with any of these
- steps.
-
- You can copy PROKEY.COM and DB.PRO onto any diskette or your hard
- disk if you like.
-
-
- ********************************************************************
-
- Hints on Using ProKey with dBase II
-
- ProKey can be used with dBaseII to type commands, change editing
- keys, fill in fields and facilitate the creation of command files.
- The macros in this file are mainly of the customizing keyboard type,
- i.e. they assign simple strings to single keystrokes.
-
- As a user of dBaseII you can easily imagine how useful it would be to
- link commands together. For example, the procedure to modify the
- structure of a file could be made into a macro. The commands to
- locate a particular record, display it, and edit it could all be linked.
- And while command files could be created to perform such tasks, it's
- often easier to create ProKey macros while you work, with variable
- fields for filling in field or file names.
-
- ProKey is especially good for filling in the fields as you enter
- data. With one keystroke you can fill in a city, state and zip code.
- And a fixed field as part of a zip code lets you use the same macro
- for all zips with the same first two or three digits. Part numbers
- and descriptions, dates, anything that is repetitively entered into
- your database can become a macro.
-
- ProKey is also extremely useful if you write dBaseII programs. Many
- constructs are used quite repetitively. These can all be made into
- macros; your typing will be much reduced.
-
- Experiment, and you will find many ways for ProKey to
- help you deal more efficiently and effectively with dBaseII.
-
- ********************************************************************
-
- One Word of Caution
-
- dBaseII has a habit which you need to be aware of when you create
- your own macros. dBaseII has the tendency to throw away
- characters while the disk is spinning or it is processing other
- commands. This means it asks for a character from the keyboard
- and then tosses it out instead of saving it. You may have
- noticed this if you try to type "use filename" before dBaseII
- presents you with the "." prompt or if you type ahead while other
- processes are occurring.
-
- So if you create a macro which contains several commands and
- suspect that dBaseII is throwing away characters before they
- are executed, there are several things you can try. First, be
- sure that ProKey is executing in the Slow Mode. Second, you
- can edit your macros, and insert delays after commands which
- you know take dBaseII a while to execute. You will need to
- experiment to discover how long a delay is required.
-
- We also suggest that you write to Ashton-Tate, to let them know
- that you are concerned with this problem of thrown away characters.
-
- *********************************************************************
-
- The following macros have assigned commands to various keys.
- Because dBaseII commands are so dependent on information that
- varies (names of files and fields, expressions and functions) these
- Starter Set macros are fairly general. When variable fields are
- used these can easily be replaced with specific field names,
- filespecs and the like.
-
- If you wish, you may assign the macros you use most often to the
- function keys. To do this, edit DB.PRO and change the key name.
- The Users Guide tells how to edit macro files with your editor.
-
- Using and manipulating files:
-
- <altu> This macro types the command "use"; you supply the filename.
- The filename is automatically saved as the definition of
- macro <f1>. So the next time you want to refer to the name
- of the file in use, just press <f1> and ProKey will type
- the name.
-
- <f1> holds the filename currently in use. (You must have
- previously defined it using <altu>.
-
- <f2> types the word index
-
- <f9> saves the changes made in a record or file and returns to
- the command mode (analagous to ctrlw)
-
- <f10> aborts any changes made and returns you to the command mode
- (ctrlq)
-
- <home> moves you to the top of a file (using the go top command)
-
- <end> moves you to the bottom of a file (using the go bottom command)
-
- <ctrlbks> acts as a destructive backspace. The backspace key was not
- chosen for this function because although this change will
- work fine when entering data, it will not work at the command
- level.
-
- <tab> defines the tab key as five blanks.
-
- <altc> copies the fields of one file to another.
- The fields to be copied can be limited by some expression.
- copy to ___ fields ___ for ___
-
- <altl> looks for a certain record with the "locate" command:
- locate ___ for ___ = '___'
-
- <ctrll> continue
-
- <altr> prepares a report when given the report form name and a
- limiting expression
- <alts> sums the contents of a field for a given time span.
- E.g. sum the contents of the field total sold between
- Jan 1st and March 31st. You may need to change the
- fieldname "date" and the delimiting "/" to correspond to
- your own way of designating the date.
-
- <altt> totals on a key field and places the results in a database
- (see page 59 of your dBase manual):
- total on ___ to ___ for ___
-
- <altm> use this macro to modify the structure of a database.
- At the pause after "use" fill in the filename of the
- database you wish to modify. The macro will copy its
- structure to a file named temp; use temp; and modify
- structure. It answers yes to the proceed question.
- It then enters a variable field. This gives you an
- opportunity to modify the structure of the file. Because
- <enter> is used to note the end of a field, use the down
- arrow or an escape enter <`enter> to move around during
- your editing. When you do type <enter>, the changes you
- made will be saved and the records appended from the
- original file to the temp file. You may then rename the
- temp file as your original file or copy the records back to
- the original file.
-
- Browsing:
-
- <altb> browse
-
- <ctrlpgu> when you are in the browse mode this key will pan the
- window one field right.
-
- <ctrlpgd> when in the browse mode this pans the window one field left.
-
- <ctrlrgt> when in browse mode this key moves to the next data field.
-
- <ctrllft> backs up to the previous data field when browsing.
-
- (ins> acts as a toggle for inserting (ctrl v).
-
- <delâ•› acts as the delete record toggle (ctrl u).
-
- <f9> saves the changes made in a record or file and returns to
- the command mode (analagous to ctrlw).
-
- <f10> aborts any changes made and returns you to the command mode
- (ctrlq).
-
- Commands and Programming constructs:
-
- <alte> endif
-
- <altw> do while
-
- <altf> the command to display files like *.xxx where you
- fill in the xxx (e.g. with prg, frm, etc.)
-
- <alt2> the structure used to display specific formatted information
- on the screen or printer using "@ coordinates say 'something'".
- Use in conjunction with "set format to ..."
-
- <f5> sets some parameter ON.
-
- <f6> sets some parameter OFF.
-
- <f7> sets the default drive.
-
- <f8> sets the format to xxx, xxx being printer or screen.
-
- <altd> an easy way to type the date: 85/ / ; you fill in the month
- and the day.