home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / DB / DB009B.ZIP / 1.ZIP / 3!!_TUT.DOC < prev    next >
Text File  |  1989-09-29  |  113KB  |  2,834 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                            1 on 1 = 3!! TUTORIAL
  10.                            ---------------------
  11.  
  12.      1.                       GETTING STARTED
  13.  
  14.      2.                        OPENING MENU
  15.  
  16.      3.                            X DOS
  17.  
  18.      4.                       ADMINISTRATION
  19.  
  20.      5.                        Command MODE
  21.  
  22.      6.                        DOCUMENTATION
  23.  
  24.      7.                          MENU MODE
  25.  
  26.           7.1.                  HELP WINDOW
  27.  
  28.           7.2.              INFORMATION WINDOW
  29.  
  30.           7.3.                     HELP
  31.  
  32.                7.3.1.        HELP BROWSE MODE
  33.  
  34.                7.3.2.         HELP MENU MODE
  35.  
  36.           7.4.     MOVING AROUND AND CHOOSING MENU ITEMS
  37.  
  38.                7.4.1.  UP AND DOWN IN LEVEL 2 MENUS
  39.  
  40.                7.4.2.   MOVING TO NEXT LEVEL 2 MENU
  41.  
  42.                7.4.3.  USING LETTERS TO CHANGE MENUS
  43.  
  44.                7.4.4.       CHOOSING MENU ITEMS
  45.  
  46.                7.4.5.   LEAVING LEVEL 3 AND 4 MENUS
  47.  
  48.           7.5.              CREATING A DATABASE
  49.  
  50.           7.6. CREATING A PICTURE OF THE CURRENT ENVIRONMENT
  51.  
  52.           7.7.              QUITTING MENU MODE
  53.  
  54.           7.8.           RESTORING A SAVED PICTURE
  55.  
  56.           7.9.         APPENDING DATA TO A DATABASE
  57.  
  58.           7.10.            EDITING A MEMO FIELD
  59.  
  60.                                      1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.           7.11.      CURRENT RECORD DISPLAY ON SCREEN
  68.  
  69.           7.12.  SPECIAL KEYS TO MOVE AROUND THE DATABASE
  70.  
  71.           7.13.           INDEXING YOUR DATABASE
  72.  
  73.           7.14.                  REPORTING
  74.  
  75.           7.15.          POSITION TOP OF DATABASE
  76.  
  77.           7.16.         OUTPUT TO DIFFERENT DEVICES
  78.  
  79.           7.17.           EJECTING TO A NEW PAGE
  80.  
  81.           7.18.                   SEEKING
  82.  
  83.           7.19.                   EDITING
  84.  
  85.           7.20.               CREATE PICTURE
  86.  
  87.           7.21.             CLEARING DATABASES
  88.  
  89.           7.22.              RESTORE A PICTURE
  90.  
  91.           7.23.               NAME A DATABASE
  92.  
  93.           7.24.               CREATE A FILTER
  94.  
  95.           7.25.        CREATE A REPORT CONTROL FILE
  96.  
  97.           7.26.              RUNNING A REPORT
  98.  
  99.           7.27.        MODIFY A REPORT CONTROL FILE
  100.  
  101.           7.28.              RUNNING A REPORT
  102.  
  103.           7.29.              REMOVING A FILTER
  104.  
  105.           7.30.               CREATE AN INDEX
  106.  
  107.           7.31.              RUNNING A REPORT
  108.  
  109.           7.32.               NAME A DATABASE
  110.  
  111.           7.33.                   DISPLAY
  112.  
  113.           7.34.                    ORDER
  114.  
  115.           7.35.              SPECIAL SEEK KEY
  116.  
  117.           7.36.             SPECIAL BROWSE KEY
  118.  
  119.                                      2
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.           7.37.                   MACROS
  127.  
  128.           7.38.               CREATE A MACRO
  129.  
  130.           7.39.              CREATE A RELATION
  131.  
  132.           7.40.              MODIFY A RELATION
  133.  
  134.           7.41.           REPORTING RELATED FILES
  135.  
  136.           7.42.              COPYING DATABASES
  137.  
  138.           7.43.               SORT A DATABASE
  139.  
  140.           7.44.      CHANGING POSITION IN THE DATABASE
  141.  
  142.           7.45.                 BROWSE MODE
  143.  
  144.           7.46.                   REPLACE
  145.  
  146.           7.47.                   DELETE
  147.  
  148.           7.48.                    PACK
  149.  
  150.           7.49.                   RECALL
  151.  
  152.           7.50.                  STRUCTURE
  153.  
  154.           7.51.            CHANGING DIRECTORIES
  155.  
  156.           7.52.                COPYING FILES
  157.  
  158.           7.53.                     SET
  159.  
  160.           7.54.             MODIFYING PROGRAMS
  161.  
  162.           7.55.                MODIFY FORMAT
  163.                                       
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.                                      3
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.                            1 on 1 = 3!! TUTORIAL
  187.                            ---------------------
  188.  
  189.      On  the  following  pages  is  a tutorial for learning how to use
  190.      1 on 1 = 3!!.  The conventions used are:
  191.  
  192.           1.   Categories  are  numbered  and  their  descriptions are
  193.                centered  and  underline.    You  do not type in any of
  194.                this.
  195.  
  196.           2.   What you type in always appears  on the  left hand side
  197.                of  the  page  and  a  description of what is happening
  198.                appears on the right hand side of the  page.   As we go
  199.                further into  the tutorial  we will put more keystrokes
  200.                on the left at  one time.   Take  time to  observe what
  201.                each keystroke does.  We have had to split up the input
  202.                at times  into multiple  lines to  fit it  on the left.
  203.                You do  not, I repeat do not press {Enter} to get a new
  204.                line just because the data you are inputing  appears on
  205.                a new line.  The only time you do press {Enter} is when
  206.                you see {Enter} on the left of the page.
  207.  
  208.           3.   Special characters are described within {} just like we
  209.                did with  {Enter} above.  When you see this you type in
  210.                the special character itself  and  not  the  {}  or the
  211.                description enclosed in the {}.
  212.  
  213.           4.   At times  you will  have to press two keys at once.  An
  214.                example of this is {Ctrl  {End}}.    In  this  case you
  215.                would hold  down the  Ctrl key  just like you would the
  216.                shift key when you  want  upper  case  and  while still
  217.                holding down the Ctrl key press the key marked {End}.
  218.  
  219.           5.   In some cases you have a choice of different input.  In
  220.                these cases your options will be separated by  '|'.  As
  221.                an example:
  222.  
  223.      M{Enter} |
  224.      C{Enter}  means you  can either put in 'M' followed by {Enter} or
  225.                'C' followed by {Enter}.  You do not do both.
  226.  
  227.           6.   {any key} means just that. Press any key.
  228.  
  229.           After you are taught how to  create a  database in  the Menu
  230.      Mode,  you  will  be  taught  how  you  can take a picture of the
  231.      current environment.  This will allow  you to  take a  picture at
  232.      any time,  leave 1  on 1 = 3!! to do something else, come back to
  233.      the menu mode, restore the picture  and continue  in the tutorial
  234.      where you left off.
  235.  
  236.  
  237.                                      4
  238.  
  239.  
  240.  
  241.  
  242.  
  243.           If someone  has already  used the  tutorial or you are going
  244.      through it for a  second time,  when creating  files you  will be
  245.      warned  that  the  'File  already  exists,  do you want to delete
  246.      (Y/N)'.  Just answer 'Y'.
  247.  
  248.  
  249.      1.                       GETTING STARTED
  250.                               ---------------
  251.  
  252.                       You will have to  position yourself  so that you
  253.                       are  on  the  same  drive as the \3!! directory.
  254.                       Mine is on the  C drive  so that  is where  I am
  255.                       going.   You go to the drive your \3!! directory
  256.                       is on.
  257.  
  258.      C:{Enter}        You will be position on the correct drive.
  259.  
  260.      CD\3!!{Enter}    You will  change  directories  to  the  one that
  261.                       contains the 1 on 1 = 3!! programs and files.
  262.  
  263.      3!!{Enter}       This is  how you  start 1  on 1 = 3!!.  You will
  264.                       see the 1 on  1 =  3!! opening  message and then
  265.                       you will get the Opening Menu.  'Menu mode' will
  266.                       be highlighted.
  267.  
  268.      2.                        OPENING MENU
  269.                                ------------
  270.  
  271.      {Down Arrow}     The light bar  will  move  down  one.   'Command
  272.                       mode' will now be highlighted.  If this does not
  273.                       happen check if your {Num Lock}  key is  on.  If
  274.                       it is turn it off.
  275.  
  276.      {Down Arrow}     The  light   bar  will   again  move  down  one.
  277.                       'Administration' will be highlighted.
  278.  
  279.      {Up Arrow}       The light bar will move up one.   'Command mode'
  280.                       will be highlighted.
  281.  
  282.      {Down Arrow}
  283.      {Down Arrow}     The light  bar will  move down two. 'X DOS' will
  284.                       be highlighted.
  285.  
  286.      3.                            X DOS
  287.                                    -----
  288.  
  289.      {Enter}          This is one way to choose a menu item.   You use
  290.                       the arrows  to move to the one you want and then
  291.                       you type the {Enter} key.   We have  just chosen
  292.                       'X DOS'.  You will see what directory you are in
  293.                       and then the prompt '3!!'.    We  can  now enter
  294.                       DOS commands.   We can do any we want as long as
  295.  
  296.                                      5
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                       there is  enough  memory  left  to  execute that
  303.                       command.
  304.  
  305.      DIR{Enter}       You will get a directory of the \3!! directory.
  306.  
  307.      DIR 3*{Enter}    You  will  get  a  directory  of  all files that
  308.                       start with '3'.
  309.  
  310.      {Up Arrow}       You will  see  '3!!  DIR  3*'.    Using  the {Up
  311.                       Arrow} will  retrieve for  you previous commands
  312.                       that you have put in.  there is a memory  for 50
  313.                       commands.
  314.  
  315.      {Up Arrow}       You will  see '3!!  DIR'.   This is the previous
  316.                       command.
  317.  
  318.      {Right Arrow}
  319.      {Right Arrow}
  320.      {Right Arrow} 
  321.      {Right Arrow}
  322.      I*               You will see the cursor move  to the  right each
  323.                       time you  press the {Right Arrow}.  You can edit
  324.                       previous command lines.   See  EDITING  LINES in
  325.                       the help  mode for an explanation of how to edit
  326.                       lines.
  327.  
  328.      {Enter}          The command will now be executed.  You  will get
  329.                       a directory of all files that start with 'I'.
  330.  
  331.      {Enter}          Pressing  {Enter}  on  a  blank  line in 'X DOS'
  332.                       returns you  to the  Opening Menu.   'Menu mode'
  333.                       will be highlighted.
  334.  
  335.      4.                       ADMINISTRATION
  336.                               --------------
  337.  
  338.      A                This  is  the  second  method  of  choosing menu
  339.                       items.  You press the first  letter of  the menu
  340.                       description.        You    have    just   chosen
  341.                       'Administration'.  You  will  see  'Enter  M for
  342.                       monochrome,  C  for  color'.   This is where you
  343.                       tell 1 on 1 = 3!! whether you  have a monochrome
  344.                       or a color monitor.  I have a monochrome monitor
  345.                       so I am going  to  enter  'M'.    You  enter the
  346.                       correct one for your monitor.
  347.  
  348.      M{Enter} |
  349.      C{Enter}        You will  now see,  Enter R  for read only, U for
  350.                      update.  What  this  is  allowing  you  to  do is
  351.                      determine  what  updating  capabilities a user of
  352.                      the program will have.   If  you  enter  'R' this
  353.                      will mean  that users  will not be able to update
  354.  
  355.                                      6
  356.  
  357.  
  358.  
  359.  
  360.  
  361.                      databases.  Anytime they try to execute a command
  362.                      that  allows  updating  of databases they will be
  363.                      informed  that  updating  is  not  allowed.   The
  364.                      users  will  not  be  allowed  to use the command
  365.                      mode.  If you  enter 'U'  then the  users will be
  366.                      allowed to  use all the commands in 1 on 1 = 3!!.
  367.                      We are going to enter  'U'  because  part  of the
  368.                      tutorial is  showing how  to update.  If you want
  369.                      yours to be read  only you  can come  back latter
  370.                      and change it.
  371.  
  372.      U{Enter}        You  will  be  returned  to the opening menu with
  373.                      'Menu mode' highlighted.
  374.  
  375.      5.                        Command MODE
  376.                                ------------
  377.  
  378.      C                You have just chosen  'Command mode'.   You will
  379.                       again see  '3!!' but  this time you are in the 1
  380.                       on 1 = 3!! Command Mode.  Here you can enter any
  381.                       dBASE commands  that you want or you can execute
  382.                       your dBASE programs using the 'DO' command.
  383.  
  384.      DIR{Enter}       You will get a  directory  of  the  databases in
  385.                       \3!!. You will again get the prompt '3!!'.
  386.  
  387.      DISPLAY STATUS
  388.      {Enter}          You will  get the  current status.   You will be
  389.                       prompted to 'press  any  key  to  continue' when
  390.                       the page fills up.
  391.  
  392.      {any key}        You   will   get   the   next   page  of  status
  393.                       information and the message again 'press any key
  394.                       to continue'
  395.  
  396.      {any key}        You will  get the last of the status information
  397.                       and then the prompt '3!!'
  398.  
  399.      {Up Arrow}       '3!! DISPLAY STATUS' will  be  displayed.   Just
  400.                       like  in  the  X  DOS Mode, while in the Command
  401.                       Mode your commands will be saved.  By  using the
  402.                       {Up Arrow} you may retrieve previous commands. 
  403.  
  404.      {Up Arrow}       '3!! DIR' will now be displayed.
  405.  
  406.      {Right Arrow}
  407.      {Right Arrow}
  408.      {Right Arrow}
  409.      {Right Arrow}
  410.       *.FOX{Enter}    Again just  like in  the X DOS Mode you can edit
  411.                       your  commands  and  then  execute  them.    See
  412.                       EDITING LINES in the Help Mode.
  413.  
  414.                                      7
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.      QUIT | RETURN
  422.      {Enter}         You  may  get  out  of  the Command Mode by using
  423.                      either the QUIT or the RETURN commands.  You will
  424.                      be returned  to the Opening Menu with 'Menu mode'
  425.                      highlighted.
  426.  
  427.      6.                        DOCUMENTATION
  428.                                -------------
  429.  
  430.      {Up Arrow}
  431.      {Up Arrow}       You can go either  way.   'Documentation' should
  432.                       now be highlighted.
  433.  
  434.      {Enter}          You have  just chosen 'Documentation'.  You will
  435.                       get a  new menu.   'Index'  will be highlighted.
  436.                       This is  where you  print out your documentation
  437.                       from.  If you were to  choose 'Index'  you would
  438.                       be  asked  to  enter  the  number  of  spaces to
  439.                       indent.  This is different for each printer.   I
  440.                       suggest you try 5 to start.  We are not going to
  441.                       do this now.
  442.  
  443.      {Down Arrow}     'Help' will be highlighted.
  444.  
  445.      {Enter}          Choosing  'Help'  allows  us  to  print  out the
  446.                       documentation.   You will be asked for the start
  447.                       page.  If you do  not  have  a  printer attached
  448.                       enter 0 for the starting page number.
  449.  
  450.      2{Enter}         We are  going to  start from page 2. If you want
  451.                       the full document enter 1.  Again if  you do not
  452.                       have a  printer, enter  a 0.   You will be asked
  453.                       'Enter the end page'.   If  you  do  not  have a
  454.                       printer enter  0.  If you want the full document
  455.                       enter 999.
  456.  
  457.      4{Enter}         We asked it for pages 2 through 4.  If  you want
  458.                       the whole  document put  in pages 1 through 999.
  459.                       You will now be  asked to  'Enter the  number of
  460.                       spaces to  indent'.   Again this depends on your
  461.                       printer.  Try a few pages at different settings.
  462.  
  463.      5{Enter}         We have indented ours 5 spaces.   The  pages you
  464.                       chose  will  now  print.      After  it finishes
  465.                       printing   you   will   be   returned   to   the
  466.                       Documentation menu with 'Index' highlighted.
  467.  
  468.      Q                'Quit'  returns  you  to  the  opening Menu with
  469.                       'Menu mode' highlighted.
  470.  
  471.  
  472.  
  473.                                      8
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480.      7.                          MENU MODE
  481.                                  ---------
  482.  
  483.      M                We have chosen the 'Menu  mode'.    We  could of
  484.                       done the  same thing by pressing the {Enter} key
  485.                       because 'Menu mode' was  highlighted.    It will
  486.                       now take  from 10 to 40 seconds to load the menu
  487.                       control file.  You will then be presented with a
  488.                       number  of  menu  choices  across the top of the
  489.                       screen.  'Name' will  be  highlighted.    On the
  490.                       bottom of  the screen  is a box with information
  491.                       in it.  It will say 'Welcome! ...'.  This box is
  492.                       your Help Window.  You will see as we go through
  493.                       the different menu items  that this  will change
  494.                       to describe the current menu item.
  495.  
  496.           7.1.                  HELP WINDOW
  497.                                 -----------
  498.  
  499.      {Enter}          Just like  in the Opening Menu, pressing {Enter}
  500.                       on an menu item will choose that item.  What you
  501.                       should now see is the 'Name' pull down menu with
  502.                       the first item,  'Database'  highlighted.   Also
  503.                       notice that the Help Window at the bottom of the
  504.                       screen has changed to an explanation of naming a
  505.                       database   to   correspond   to   the  currently
  506.                       highlighted  menu  item.      If   there   is  a
  507.                       corresponding   dBASE   type   command  for  the
  508.                       current menu item, the  syntax for  that command
  509.                       will  be  the  first  thing  you see in the help
  510.                       window.  It  will  then  go  on  to  explain the
  511.                       command and how to use it.
  512.  
  513.           7.2.              INFORMATION WINDOW
  514.                             ------------------
  515.  
  516.      {F4}             Notice that  pressing the  {F4} removes the Help
  517.                       Window and  puts  in  its  place  an Information
  518.                       Window.  This contains a lot of information that
  519.                       will be filled in as you use the program.
  520.  
  521.      {F4}             Now the bottom of the screen is blank except for
  522.                       a  double  line  in  the  middle  and a one line
  523.                       explanation of the current  menu  item.   Latter
  524.                       when  we  have  an  active database, the current
  525.                       record will show in this window.
  526.  
  527.      {F4}             Now we get a list of the special keys we can use
  528.                       while  we  are  in  this menu.  Let's leave this
  529.                       screen on for a while  since  we  will  be using
  530.                       these special keys.
  531.  
  532.                                      9
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.           7.3.                     HELP
  540.                                    ----
  541.  
  542.                7.3.1.        HELP BROWSE MODE
  543.                              ----------------
  544.      {F1}             One of  the keys  described on the bottom of the
  545.                       screen is the {F1} key.   Next to  it says Help.
  546.                       The  {F1}  key  is  your  key to help.  You will
  547.                       notice that you now have the same information on
  548.                       your screen  that was  in the Help Window before
  549.                       we started switching the  screens.   You are now
  550.                       in  the  Help  Browse  Mode.    If there is more
  551.                       information on  this command  you can  get it by
  552.                       pressing {Page Down}.
  553.  
  554.      {Page Down}      You get  another page of information on naming a
  555.                       database.
  556.  
  557.      {Page Down}      And then some more.  You  will notice  that this
  558.                       topic ends  and you  get the  next one.  We have
  559.                       used our browse mode  to let  you browse through
  560.                       the help file.  It is really an on line book.
  561.  
  562.      {Page Up}        You can  go back  to previous  pages.  Try using
  563.                       the {Up Arrow} and {Down Arrow} to scroll a line
  564.                       at a time.
  565.  
  566.                7.3.2.         HELP MENU MODE
  567.                               --------------
  568.  
  569.      {Esc}            The {Esc}  gets you  out of the Help Browse Mode
  570.                       and puts you in  the Help  Menu Mode.   You will
  571.                       see  on  your  screen  a  list of topics you can
  572.                       choose to get further information about.
  573.  
  574.      {Right Arrow}    The light bar moves to the right one topic.
  575.  
  576.      {Down Arrow}     The light bar moves down one  topic.   Try using
  577.                       the four  arrow keys.   Try the {Home} and {End}
  578.                       keys.
  579.  
  580.      R                The light  bar  moves  to  the  next  topic that
  581.                       begins with the letter 'R'.
  582.  
  583.      R                Again  the  light  bar  moves  to the next topic
  584.                       that begins with the letter 'R'.
  585.  
  586.      {Enter}          This is the way  you choose  a topic.   You move
  587.                       the light bar to the one you want and then press
  588.                       {Enter}.  Sound familiar.    You  should  now be
  589.                       back in  the help  browse mode for the topic you
  590.  
  591.                                     10
  592.  
  593.  
  594.  
  595.  
  596.  
  597.                       have chosen.    Again  you  could  browse around
  598.                       using the {Page Down} and {Page Up} keys.
  599.  
  600.      {Esc}            You are  returned to the Help Menu Mode.  If you
  601.                       wanted you could choose  another  topic  to look
  602.                       at.   We are going to move on now.  If you want,
  603.                       stay here and look up some  of the  topics. HELP
  604.                       is a  good one  to start with.  Also please come
  605.                       back here  as we  are going  though the tutorial
  606.                       for further  explanations about what the current
  607.                       menu item we are using.
  608.  
  609.      {Esc}            Pressing {Esc} while the  help  menu  is  on the
  610.                       screen will  return you  to where you called for
  611.                       help.  We are back at 'Name' 'Database'.
  612.  
  613.           7.4.     MOVING AROUND AND CHOOSING MENU ITEMS
  614.                    -------------------------------------
  615.  
  616.                7.4.1.  UP AND DOWN IN LEVEL 2 MENUS
  617.                        ----------------------------
  618.  
  619.      {Down Arrow}     The top line of  topics,  Name,  Create, Modify,
  620.                       etc.  are  considered  level  1 menu items.  The
  621.                       menu we are now in is considered a  level 2 menu
  622.                       item.   Just like  in the opening menu the {Down
  623.                       Arrow} will move the light bar down one item.
  624.  
  625.      {Up Arrow}       And the {Up Arrow}  will move  the light  bar up
  626.                       one item.
  627.  
  628.                7.4.2.   MOVING TO NEXT LEVEL 2 MENU
  629.                         ---------------------------
  630.  
  631.      {Right Arrow}    The {Right  Arrow} closes  the current pull down
  632.                       menu, moves to the next one to the  right, opens
  633.                       that one and positions on the first menu item.
  634.  
  635.      {Right Arrow}    Again  we  move  over  one pull down menu to the
  636.                       right.
  637.  
  638.      {Left Arrow}     The {Left Arrow} closes  the  current  pull down
  639.                       menu, moves  to the  next one to the left, opens
  640.                       that one and positions on the first menu item.
  641.  
  642.                7.4.3.  USING LETTERS TO CHANGE MENUS
  643.                        -----------------------------
  644.  
  645.      E                Pressing  a  letter  that  matches  one  of  the
  646.                       letters on  the top menu causes the current pull
  647.                       down menu to close and the  one corresponding to
  648.                       the letter you pressed to be opened.  You should
  649.  
  650.                                     11
  651.  
  652.  
  653.  
  654.  
  655.  
  656.                       now be in the  'Extra' menu  with 'Command mode'
  657.                       highlighted.  It does not matter whether you use
  658.                       upper or lower case. 'e' would of done  the same
  659.                       thing.
  660.  
  661.      {Down Arrow}
  662.      {Down Arrow}     'Directory' should now be highlighted.
  663.  
  664.                7.4.4.       CHOOSING MENU ITEMS
  665.                             -------------------
  666.  
  667.      {Enter}          Again  we  can  choose  a  menu item by pressing
  668.                       {Enter} while  it is  highlighted.   You now get
  669.                       another pull down menu with choices of what kind
  670.                       of directory you want.
  671.  
  672.      {Enter}          This is a level 3  menu.    We  chose  to  get a
  673.                       directory of databases.
  674.  
  675.      {any key}        You are returned back to the menu.
  676.  
  677.      2                All  pull  down  menus  are  numbered.   You may
  678.                       choose a menu item by pressing the corresponding
  679.                       number.  We have chosen '*.IDX'
  680.  
  681.      {any key}
  682.  
  683.      0                0,  that  is  zero  not  the  letter  O, You are
  684.                       prompted to  put in  the mask  for the directory
  685.                       you want.
  686.  
  687.      *.fox{Enter}     We get  a list  of all  files with the extension
  688.                       '.fox'.
  689.  
  690.      {any key}
  691.  
  692.                7.4.5.   LEAVING LEVEL 3 AND 4 MENUS
  693.                         ---------------------------
  694.  
  695.      {Right Arrow} |
  696.      {Left Arrow} |
  697.      {Esc}            Notice on the bottom of the  screen, 3  keys are
  698.                       marked 'Previous  menu'.  In order to get out of
  699.                       a level 3 or level 4 menu without  executing the
  700.                       command or option that is highlighted you have 3
  701.                       choices, {Right  Arrow}, {Left  Arrow} or {Esc}.
  702.                       Press one of those 3.
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.                                     12
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.           7.5.              CREATING A DATABASE
  717.                             -------------------
  718.  
  719.      C                We jump over to the 'Create' pull down menu.
  720.  
  721.      1                We choose  'Database'.  Again we could have just
  722.                       typed {Enter}.  You will get  a screen  with the
  723.                       names  of  files  across  the top and the cursor
  724.                       will be positioned on the bottom line.  You will
  725.                       see  this  screen  when executing many different
  726.                       commands.  In this case  what  it  wants  is the
  727.                       name of the database we are going to create.
  728.  
  729.      MAIL{Enter}      We have  named ours 'MAIL'.  If there is another
  730.                       database by this name  we  would  get  a warning
  731.                       message and  have a  chance to  change our mind.
  732.                       If we  don't  then  the  old  database  would be
  733.                       deleted.   You will get a screen with a help box
  734.                       on the top explaining the different editing keys
  735.                       you can use.  If you don't see this help box try
  736.                       pressing the {F1} key.  Below that you  will see
  737.                       columns marked field name, type, width, and dec.
  738.                       Number 1 will be highlighted.  This is where you
  739.                       enter  information  about  the  different fields
  740.                       that make up your database.
  741.  
  742.      FIRST_NAME       Field name is where  you  give  a  name  to each
  743.                       field.    The  name  must  start  with  an alpha
  744.                       character.  It can be up  to 10  characters long
  745.                       and  contain  alphabetic,  numeric and underline
  746.                       characters.  If you fill up all 10 characters as
  747.                       we did  here, the  computer will beep at you and
  748.                       go on to the next field.
  749.  
  750.      {Enter}          Since FIRST_NAME is a character field  we choose
  751.                       the default by pressing {Enter}.
  752.  
  753.      15{Enter}        We  enter  15  for  the  number of characters to
  754.                       allocate for this  field.    The  computer skips
  755.                       over  dec  which  is  number  of  decimal places
  756.                       which doesn't apply to character type fields and
  757.                       goes to line 2.
  758.  
  759.      LAST_NAME
  760.      {Enter}          Since we  did not  fill up  the field  we had to
  761.                       press {Enter} at the end.  We have split up name
  762.                       into two  fields so we can do sorts and look ups
  763.                       on the last name.
  764.  
  765.      {Enter}          Again we choose the default, character.
  766.  
  767.  
  768.                                     13
  769.  
  770.  
  771.  
  772.  
  773.  
  774.      20{Enter}        We allocate 20 characters for the last name.
  775.  
  776.      ADDRESS1{Enter}
  777.      {Enter}
  778.      30{Enter}        We  create  an   address   field   that   is  30
  779.                       characters wide.
  780.  
  781.      ADDRESS2{Enter}
  782.      {Enter}
  783.      30{Enter}        We have found that it is good to have at least 2
  784.                       address lines.  Some times you  need a  c/o line
  785.                       or the address actually takes up two lines.
  786.  
  787.      CITY{Enter}
  788.      {Enter}
  789.      20{Enter}        We set up city with 20 characters.  How large to
  790.                       make any of the fields comes with experience and
  791.                       knowing your  data.   Don't worry  if you make a
  792.                       field too  large  or  too  small,  it's  easy to
  793.                       change latter on.
  794.  
  795.      STATE{Enter}
  796.      {Enter}
  797.      2{Enter}
  798.      ZIP{Enter}
  799.      {Enter}
  800.      10{Enter}        That takes care of the name and address.
  801.  
  802.      PHONE{Enter}
  803.      {Enter}
  804.      12{Enter}        Even though  phone is  made up of numbers we put
  805.                       it  in  a  character  field  because   it  isn't
  806.                       numbers we will do any math on.
  807.  
  808.      BIRTH{Enter}
  809.      {Space Bar}      Pressing  the  {Space  Bar}  in  the  type field
  810.                       causes   the   description   to    change   from
  811.                       'Character' to 'Numeric'.
  812.  
  813.      {Space Bar}      Pressing it again you get date.
  814.  
  815.      {Enter}          Since that  is the type of field we are creating
  816.                       we press {Enter}  to  select  it.    Notice what
  817.                       happened.  The width column got the number 8 and
  818.                       we went down to the next field.   All dates take
  819.                       8 characters.
  820.  
  821.      SALARY{Enter}N   Typing 'N'  in the type column is another way of
  822.                       choosing numeric.  You  go  right  to  the width
  823.                       field.
  824.  
  825.      10{Enter}        We  make  the  salary  field 10 characters wide.
  826.  
  827.                                     14
  828.  
  829.  
  830.  
  831.  
  832.  
  833.                       This time it stops  in  the  'dec'  column.   It
  834.                       wants to  know how many digits after the decimal
  835.                       place we want to keep.
  836.  
  837.      2{Enter}         We tell it two decimal places.
  838.  
  839.      CUSTOMER{Enter}
  840.      L                For our customer field we  put  a  type  of 'L'.
  841.                       This is  a logical field.  It means you can only
  842.                       keep T for True  or  F  for  false  in  it.   It
  843.                       defaults to  1 character  wide.  We are going to
  844.                       use it to note if this  person is  a customer or
  845.                       not.
  846.  
  847.      NOTES{Enter}
  848.      M                For  NOTES   we  create  a  memo  field.    This
  849.                       defaults to 10  characters.    This  is  not how
  850.                       many  characters  we  can  store  in  the  NOTES
  851.                       field.  In a memo type field you can store up to
  852.                       64,000 characters.
  853.  
  854.      {Ctrl {End}}     Remember to hold the {Ctrl} key like a shift key
  855.                       and at the same time press  {End}.   We tell the
  856.                       computer  that  is  all  the  fields  we want to
  857.                       define.    The  computer  says  'Press  ENTER to
  858.                       confirm.  Any other key to resume.'
  859.  
  860.      {Enter}          We are  finished for  now.  The computer creates
  861.                       the database and asks if we  want to  enter data
  862.                       now.
  863.  
  864.           7.6. CREATING A PICTURE OF THE CURRENT ENVIRONMENT
  865.                --------------------------------------------
  866.  
  867.      N{F3}            No, we'll do it using the append command latter.
  868.                       We're back  out  to  the  menu.    The  {F3} key
  869.                       switches the  what is displayed at the bottom of
  870.                       the screen in the  opposite  direction  from the
  871.                       {F4}   key.   Press   the  {F3}  key  until  the
  872.                       Information Window with the word Database in the
  873.                       upper left hand corner is on the screen.  Notice
  874.                       how it tells us the name  of the  current master
  875.                       database.    We  will  now use Create Picture to
  876.                       save information about the  current environment.
  877.                       This  will   allow  you   to  then   go  out  of
  878.                       1 on 1 = 3!! at any time  by creating  a picture
  879.                       of the  environment before you leave.  Then when
  880.                       you come back into the Menu Mode you can recover
  881.                       that environment  and continue the tutorial from
  882.                       that point on.
  883.  
  884.      C4               We choose create picture.  We are asked  for the
  885.  
  886.                                     15
  887.  
  888.  
  889.  
  890.  
  891.  
  892.                       name of the output file.
  893.  
  894.      PLACE{Enter}     We name  the picture PLACE.  Now lets get out of
  895.                       1 on 1 = 3!!.
  896.  
  897.           7.7.              QUITTING MENU MODE
  898.                             ------------------
  899.  
  900.      Q                We are now at the 'Quit' menu.   Just doing this
  901.                       does not  get us  out of the Menu Mode.  You now
  902.                       have to  choose  'Quit'  by  hitting  {Enter} or
  903.                       pressing '1'.  
  904.  
  905.      1                We are now back to the opening menu.
  906.  
  907.      Q                Now we  are all the way out of 1 on 1 = 3!!.  If
  908.                       you want take a break now  and come  back to the
  909.                       tutorial latter.   Any  time you do take a break
  910.                       you should  follow  the  sequence  starting with
  911.                       create a picture.
  912.  
  913.      3!!{Enter}
  914.      {Enter}{Enter}   We're going  on.  We should be in menu mode with
  915.                       the Name menu pulled down.
  916.  
  917.           7.8.           RESTORING A SAVED PICTURE
  918.                          -------------------------
  919.  
  920.      5                We choose  Name Picture.   And  the system asked
  921.                       for  the  name  of  the  picture file we want to
  922.                       restore.
  923.  
  924.      {Up arrow}P      The {Up Arrow} should  highlight the  first file
  925.                       at the  top of  the screen.  Pressing 'P' should
  926.                       move the highlight to the 'PLACE' file.
  927.  
  928.      {Enter}          We choose the PLACE file and are returned to the
  929.                       main menu.
  930.  
  931.      {F4}             The information window should be on your screen.
  932.                       It  should  tell  you  the  master  database  is
  933.                       MAIL.DBF and  the picture file is PLACE.PIC.  We
  934.                       are  back  where  we  were  when  we  saved  the
  935.                       picture.
  936.  
  937.  
  938.  
  939.           7.9.         APPENDING DATA TO A DATABASE
  940.                        ----------------------------
  941.  
  942.      U2               Let's jump  over to the 'Update' menu and choose
  943.                       'Append'.  We get  a screen  with a  Help Box on
  944.  
  945.                                     16
  946.  
  947.  
  948.  
  949.  
  950.  
  951.                       top  telling  us  the  editing  keys we can use.
  952.                       Again if you do not see  the Help  Box press the
  953.                       {F1} key.   Down  the left side we see the field
  954.                       names we have just entered and  to the  right of
  955.                       them a place to enter data.
  956.  
  957.      Frank{Enter}
  958.      Rogers{Enter}    That's  me.    I  always  like to try and get my
  959.                       names and addresses  in  upper  and  lower case.
  960.                       It's harder  to type  but looks  better when you
  961.                       put it on a label or merge it with a letter.
  962.  
  963.      I on I Computer 
  964.      Solutions, Inc{Enter}
  965.      26 Finchwood Dr.
  966.      {Enter}          You could leave a  place  for  company  name and
  967.                       title in  your database.  What we have is just a
  968.                       sample.   When you  fill up  a field  like I did
  969.                       with  my  company  name it will automatically go
  970.                       to the next field if you  have set  confirm off.
  971.                       The default is that confirm is on so you have to
  972.                       put in the {Enter} key even  when you  fill up a
  973.                       field.
  974.  
  975.      Trumbull{Enter}
  976.      CT{Enter}
  977.      06611{Enter}
  978.      203-375-0914{Enter}
  979.      04/22/44{Enter}  Now that  you know my birthday you can send me a
  980.                       card.
  981.  
  982.      1000000{Enter}   I'm allowed to dream a little, aren't I.
  983.  
  984.      F{Enter}         You may not have  to put  the enter  in when you
  985.                       fill  up  a  field  like  this  if  you have set
  986.                       confirm off.
  987.  
  988.      {Ctrl 
  989.      {Page Down}}     We are now  at  the  NOTES  field.    This  is a
  990.                       special type  of field  called a memo field.  By
  991.                       pressing {Ctrl {Page Down}} we go  into the edit
  992.                       mode of this field.  At the top of the page is a
  993.                       help box with the editing keys  we can  use.  If
  994.                       you do  not see  the help box try pressing {F1}.
  995.                       We can put anything we want  in here.   Its just
  996.                       like a word processor.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.                                     17
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.           7.10.            EDITING A MEMO FIELD
  1012.                            --------------------
  1013.  
  1014.      The quick brown
  1015.      fox{Left Arrow}
  1016.      {Left Arrow}
  1017.      {Left Arrow}     Notice how the cursor moves backwards under each
  1018.                       letter.  These special  keys  we  are  using now
  1019.                       work for input anywhere in 1 on 1 = 3!!.
  1020.  
  1021.      {Del}{Del}{Del}  The delete  key deletes  the character above the
  1022.                       cursor.  The 'fox' should be gone now.
  1023.  
  1024.      hat{Back Space}
  1025.      {Back Space}
  1026.      {Back Space}     The {Back Space} key is  the  one  on  the right
  1027.                       side of the top line that has a large left arrow
  1028.                       on it.   It  is  used  to  delete  the character
  1029.                       before the cursor.
  1030.  
  1031.      cat{Left Arrow}
  1032.      {Left Arrow}
  1033.      {Left Arrow}
  1034.      Rat              Notice how  we type  over the  letters that were
  1035.                       there before.
  1036.  
  1037.      {Left Arrow}
  1038.      {Left Arrow}
  1039.      {Left Arrow}
  1040.      {Ins}large {Home}
  1041.      {Home}{End}{End}
  1042.      {End}            The {Ins} key changes  it  so  that  anything we
  1043.                       type in will now be inserted.  Pressing it again
  1044.                       would switch back to overwrite.   The {Home} and
  1045.                       {End}  keys  are  used  to skip from one word to
  1046.                       another.  Below is one of the few  places in the
  1047.                       tutorial where  you get  to type things that are
  1048.                       on the right of the page.  Type it in  just as I
  1049.                       have it.   Do  not use the {Enter} key until the
  1050.                       end.
  1051.  
  1052.       went to find the circus to make his fortune in this world.   But
  1053.      it wasn't  to be.  On the way he met an even larger brown cat.  A
  1054.      hungry brown cat.
  1055.      {Enter}          Notice how it automatically  wraps  the  line as
  1056.                       you get near the right hand margin.  Notice when
  1057.                       you did put in the {Enter}  that  it made  a '<'
  1058.                       mark on the right hand margin.  You only use the
  1059.                       {Enter} at the end of paragraphs.
  1060.  
  1061.      {Up Arrow}{Up Arrow}
  1062.  
  1063.                                     18
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.      {Down Arrow}     You can use all four arrow keys to  move around.
  1070.                       You should now be on the beginning of the second
  1071.                       line.
  1072.  
  1073.      {Ctrl N}         {Ctrl End} insert a new line.
  1074.  
  1075.      {Back Space}
  1076.      {Del             You can delete paragraph  markers just  like any
  1077.                       other letter.
  1078.  
  1079.      {Ctrl K}B        {Ctrl K}B reformats the current paragraph.
  1080.  
  1081.      {Ctrl K}F        Notice on the top line how the word 'Find?' came
  1082.                       out.  This is how we search for strings.
  1083.  
  1084.      large{Enter}     The cursor stops right before the word 'large'.
  1085.  
  1086.      {Ctrl K}L        {Ctrl  k}L  finds  the  next  occurrence  of our
  1087.                       search string.
  1088.  
  1089.      {Ctrl K}L        We get a message '** Not found **'.
  1090.  
  1091.      {Ctrl T}         This deletes the next word.
  1092.  
  1093.      smaller {Page Down}
  1094.      {Enter}And the rat
  1095.      ate the cat.
  1096.      {Enter}{Page Up} {Page Down}  and {Page Up} move you a whole page
  1097.                       of data if you have that much.
  1098.  
  1099.                       Go ahead and type something in  while I  do some
  1100.                       more myself.  Practice is the only way to learn.
  1101.                       Try out all the keys.    You  really  can't hurt
  1102.                       anything.
  1103.  
  1104.      This  person  has  the  potential  of  becoming  one  of our best
  1105.      customers.  Someone should be contacting  him every  month.  Tell
  1106.      hi}+m how  good his  product 1  on 1 = 3!! is and don't forget to
  1107.      send a card on his birthday.{Enter}
  1108.      {Enter}
  1109.      12/12/87{Enter}
  1110.      Had a good talk with Frank.  I think we got him.{Enter}
  1111.  
  1112.                       OK, I'm back.  I hope you played  around while I
  1113.                       typed.   It's the  only way  to learn.  Notice I
  1114.                       did not press {Enter} at the  end of  each line.
  1115.                       That's done  automatically for  you.  Only press
  1116.                       {Enter} when you want to start a new paragraph.
  1117.  
  1118.      {Ctrl {Page Up}} |
  1119.      {Ctrl W}         Save  what  you  have  just  put  into  the memo
  1120.                       field.   If you didn't want to save it you would
  1121.  
  1122.                                     19
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.                       press {Esc}.  Notice there are two ways  to save
  1129.                       you memo information.
  1130.  
  1131.      {Enter}          Since  that  was  the  last field you will get a
  1132.                       new  record  that  is  blank.    Why  don't  you
  1133.                       continue and  enter a  couple of records on your
  1134.                       own.  It will make  the  rest  of  the exercises
  1135.                       more meaningful.   Try to get at least 5 records
  1136.                       in.
  1137.  
  1138.      {Esc}            Do this when you  get a  new blank  record after
  1139.                       you  have  put  in  your last record.  This will
  1140.                       bring you back to the main menu.
  1141.  
  1142.           7.11.      CURRENT RECORD DISPLAY ON SCREEN
  1143.                      --------------------------------
  1144.  
  1145.      {F4}             The screen on the  bottom  changes  so  that the
  1146.                       current  record  is  showing.  Notice the record
  1147.                       number on the left.  I know you have at  least 5
  1148.                       records.   It should be the record number of the
  1149.                       last  record  since  you  were  appending.   The
  1150.                       system keeps a record pointer to the last record
  1151.                       you did anything with.
  1152.  
  1153.           7.12.  SPECIAL KEYS TO MOVE AROUND THE DATABASE
  1154.                  ----------------------------------------
  1155.  
  1156.      {Home}           While you are on any menu item {Home}  moves the
  1157.                       record pointer  to the first record.  You do not
  1158.                       have to have the record showing on the bottom of
  1159.                       the screen  either.  The same thing will work if
  1160.                       you have any of the other screens showing.
  1161.  
  1162.      {+}{+}           {+} moves the record pointer ahead one record at
  1163.                       a time.
  1164.  
  1165.      {-}{-}           {-} move the record pointer back one record at a
  1166.                       time.  If you do it real fast  you will  not see
  1167.                       the second record.  
  1168.  
  1169.      {End}            {End}  moves  you  to  the  end of the database.
  1170.                       These four keys can be used any time  you are on
  1171.                       any  menu  item.    Of  course  you also need an
  1172.                       active database.
  1173.  
  1174.           7.13.           INDEXING YOUR DATABASE
  1175.                           ----------------------
  1176.  
  1177.      A1               Let's put our database  in order  so it's easier
  1178.                       to  work   with.    We're  going  to  index  it.
  1179.                       Indexing is creating a separate file  that keeps
  1180.  
  1181.                                     20
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.                       information on  the order  of the database based
  1188.                       on a field or a combination of fields.  You will
  1189.                       get a  familiar, I  hope, screen  that is asking
  1190.                       for the name you want to give your index file.
  1191.  
  1192.      MAIL{Enter}      I named my MAIL.   You  will  now  get  a screen
  1193.                       that looks  some what  the same except there are
  1194.                       field  names  across  the  top  of   the  screen
  1195.                       instead of  file names.  You will be seeing this
  1196.                       type of screen with  other  commands  so  let's 
  1197.                       explore how  it can  be used.  What it is asking
  1198.                       for is what fields do we want to  index on.   We
  1199.                       could just  type in  the field names we want but
  1200.                       there is an easier way.
  1201.  
  1202.      {Up Arrow}       Pressing the  {Up  Arrow}  highlights  the first
  1203.                       field name.   Does this look familiar?  Remember
  1204.                       when we  were in  the Help  Menu?   Go ahead and
  1205.                       play with the arrow keys.  
  1206.  
  1207.      L                This  should  move  you  to  the LAST_NAME field
  1208.                       since that is  the  only  one  that  starts with
  1209.                       'L'.
  1210.  
  1211.      L                That doesn't  seem to  do anything because there
  1212.                       are no more field names that start with 'L'.  If
  1213.                       there was then the light bar would move.
  1214.  
  1215.      {Enter}          We  have  selected  LAST_NAME since that was the
  1216.                       one that was highlighted.  Notice  how it writes
  1217.                       it out on the bottom line for us.
  1218.  
  1219.      +                We are  going to make an expression by combining
  1220.                       LAST_NAME  with  FIRST_NAME.    The  '+'  is the
  1221.                       operator for concatenating two fields.
  1222.  
  1223.      {Up Arrow}       That moves us back up to select another field.
  1224.  
  1225.      F{Enter}         We select  FIRST_NAME.  Notice how it puts it on
  1226.                       the  end  of  the  line  at  the  bottom  of the
  1227.                       screen.
  1228.  
  1229.      {Enter}          We  tell  the  computer  that  our expression is
  1230.                       ready and the computer creates the index file.
  1231.  
  1232.      {F3}             You should now have the formation  Window on the
  1233.                       bottom  of  the  screen.    If  you  don't  keep
  1234.                       pressing the {F3} until you get  it.   Notice it
  1235.                       tells  you  what  the current database and index
  1236.                       files  are.      It   also   has   other  useful
  1237.                       information.   Lets leave the Information Window
  1238.                       on for a while.
  1239.  
  1240.                                     21
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.           7.14.                  REPORTING
  1249.                                  ---------
  1250.  
  1251.      R                We go over to the 'Report' menu.
  1252.  
  1253.      5                We pick 'Sum'.   We get  another pull  down menu
  1254.                       with choices on it.  Notice that the Information
  1255.                       Window at the bottom  of the  screen has changed
  1256.                       also.   When this  menu is on the screen it will
  1257.                       give  you  information  about  what  choices you
  1258.                       currently have active.
  1259.  
  1260.      1                We tell  it to  go ahead and execute the current
  1261.                       command.  You will be told how many  records are
  1262.                       summed and  given a  total for the salary field.
  1263.                       Sum only  works  on  numeric  fields.    If your
  1264.                       database  doesn't  have  any  numeric fields you
  1265.                       will get  an error  message if  you execute this
  1266.                       command.
  1267.  
  1268.      {any key}
  1269.      61               This time we get an average of all salaries.
  1270.  
  1271.      {any key}
  1272.      11               You will  get a  list of  all the  fields in the
  1273.                       database except the memo fields.  Notice the way
  1274.                       the data wraps around to fit everything.
  1275.  
  1276.      {any key}
  1277.      121              We  are   going  to  build  a  field  list  with
  1278.                       selected  fields.    We  have  seen  this screen
  1279.                       before.
  1280.  
  1281.      {Up Arrow}       This moves the light bar to the first field.
  1282.  
  1283.      {Enter}          We select  this field.  The computer lists it on
  1284.                       the bottom line  and  then  highlights  the next
  1285.                       field.  This should be LAST_NAME.
  1286.  
  1287.      {Enter}          We  want   this  field  also.    This  time  the
  1288.                       computer puts  a comma  after the  last field on
  1289.                       the bottom  line and the a space followed by the
  1290.                       field we have just  chosen.   It then  moves the
  1291.                       light bar to the next field.
  1292.  
  1293.      P{Enter}         The next field we want is PHONE.
  1294.  
  1295.      C{Enter}         And then customer.
  1296.  
  1297.      {Esc}            That is  all the fields we want.  Pressing {Esc}
  1298.  
  1299.                                     22
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.                       puts the cursor on the bottom  line.   We didn't
  1306.                       have  to  enter  this  data  the way we did.  We
  1307.                       could have typed it all on the bottom line if we
  1308.                       wanted to.
  1309.  
  1310.      {Enter}          This  enters   this  as  the  current  list  and
  1311.                       returns us to the menu.  Notice how it now tells
  1312.                       you what  choices you have made on the bottom of
  1313.                       the screen.
  1314.  
  1315.      1                Execute the list command.  Notice how we now get
  1316.                       the fields we have selected.
  1317.  
  1318.      {any key}
  1319.      51               We now  try to  sum our fields.  You will get an
  1320.                       error  message  that  it   is  'Not   a  numeric
  1321.                       expression'.    If  you  create a field list for
  1322.                       summing or averaging you  can only  have numeric
  1323.                       fields in it else you will get an error message.
  1324.  
  1325.      {any key}
  1326.      {any key}
  1327.      133              We  are  going  to  specify which records and in
  1328.                       this case we specifying Next.   We are  asked to
  1329.                       enter the number of records.
  1330.  
  1331.      3{Enter}         We say 3 records.
  1332.  
  1333.      1                We  execute  the  list  command.  If there are 3
  1334.                       records left including the current record to the
  1335.                       end  of  the  database  we  will  get  3 records
  1336.                       listed.  If not  we will  get how  records there
  1337.                       are.   If we  are positioned  at the  end of the
  1338.                       database we will not get any records.
  1339.  
  1340.      {any key}
  1341.      11               Keep  doing  this  until  you  do  not  get  any
  1342.                       records listed.
  1343.  
  1344.      {any key}
  1345.  
  1346.           7.15.          POSITION TOP OF DATABASE
  1347.                          ------------------------
  1348.  
  1349.      P5               Go  over  to  the  'Position'  menu  and  choose
  1350.                       'Top'.  This is another way to get  to the start
  1351.                       of the  database.   We could  of used the {Home}
  1352.                       key.
  1353.  
  1354.      R11              Go back to the 'Report' menu  and execute 'List'
  1355.                       again.   You will get the first 3 records if you
  1356.                       have put in a least 3 records.
  1357.  
  1358.                                     23
  1359.  
  1360.  
  1361.  
  1362.  
  1363.  
  1364.  
  1365.      {any key}
  1366.  
  1367.           7.16.         OUTPUT TO DIFFERENT DEVICES
  1368.                         ---------------------------
  1369.  
  1370.      8                'Output' gives you a chance to  send your output
  1371.                       to any device you want.  If you will look at the
  1372.                       Information Window you will notice that only the
  1373.                       screen is turned on.  If you have a printer turn
  1374.                       on output to the printer by pressing 3.
  1375.  
  1376.      3                Turns on output to the printer.
  1377.  
  1378.      5                Selects output to a file.  You get  the familiar
  1379.                       file selection screen.  
  1380.  
  1381.      MAIL{Enter}      I select  an output file of 'MAIL'.  If you have
  1382.                       noticed  I  have  used  the  same  name  for the
  1383.                       database,  the  index  and  now the output file.
  1384.                       The reason we can do this is that  1 on  1 = 3!!
  1385.                       appends a different extension for each different
  1386.                       type of file.  If a file by that name does exist
  1387.                       we will get a warning and a chance to change our
  1388.                       mind.  Now look at the  Information Window.   It
  1389.                       tells you  what devices we are going to print to
  1390.                       and the name of the output file.
  1391.  
  1392.      {Esc}            Leave the output menu.
  1393.  
  1394.      11               Print a list to all the devices.
  1395.  
  1396.      {any key}
  1397.      131              We now specify all records.
  1398.  
  1399.      4                We  want  to  select   records  based   on  some
  1400.                       selection criteria.   We get our Field Selection
  1401.                       screen.    Lets  pick  everyone  with  a  salary
  1402.                       greater then  $75,000.   We could  type SALARY >
  1403.                       75000 right on the bottom line but we're lazy.
  1404.  
  1405.      {Up Arrow}
  1406.      sS{Enter}        The first 's' gets us  STATE.    The  second 'S'
  1407.                       gets us  SALARY.   Notice it  does not matter if
  1408.                       the 's' is upper  or lower  case.   The computer
  1409.                       has entered SALARY on the bottom line.
  1410.  
  1411.      > 75000{Enter}   We put  in the  rest of the formula.  Do not put
  1412.                       commas in your numbers when entering them.
  1413.  
  1414.      1                Again we execute the 'List' command.   This time
  1415.                       we  only  get  those  people  who  have a salary
  1416.  
  1417.                                     24
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.                       greater then $75,000.
  1424.  
  1425.      {any key}
  1426.  
  1427.           7.17.           EJECTING TO A NEW PAGE
  1428.                           ----------------------
  1429.  
  1430.      9                If your printer is on it will go to a new top of
  1431.                       page.
  1432.  
  1433.      846
  1434.      {Left Arrow}     Turn off output to the printer and to the file.
  1435.  
  1436.  
  1437.           7.18.                   SEEKING
  1438.                                   -------
  1439.  
  1440.      P1               We are  going to  look for a record based on our
  1441.                       index.   We  invoke  the  'Seek'  command.   The
  1442.                       computer asks us to enter the key to look up.
  1443.  
  1444.      Rog{Enter}       We enter  part of  the name  we are looking for.
  1445.                       The  computer  will  find  the  first  name that
  1446.                       starts with  'Rog'.  If there is a 'Roggs' and a
  1447.                       'Rogers' it will stop at 'Rogers'.   If  it does
  1448.                       not find any name that starts with 'Rog' we will
  1449.                       get an error message.  Since we did  not get any
  1450.                       message the computer found someone.
  1451.  
  1452.           7.19.                   EDITING
  1453.                                   -------
  1454.  
  1455.      U1               We  now  go  back  to the 'Update' menu and pick
  1456.                       'Edit'.  Notice we  get the  same choices  as we
  1457.                       did for 'List', 'Sum' and 'Average'.  If you get
  1458.                       the Information Window on  the  screen  by using
  1459.                       {F4} you  will find that the same field list and
  1460.                       selection rules are in effect.   Those rules did
  1461.                       not affect the 'Seek' command so we may not find
  1462.                       the person that 'Seek' did.
  1463.  
  1464.      1                We execute 'Edit'.  Unless Frank  Rogers was the
  1465.                       first person  in your file you will not have him
  1466.                       on the screen.  The reason  for this  is that we
  1467.                       have  specified  All  records.   This means that
  1468.                       Edit will start with the first record that meets
  1469.                       the selection criteria. 
  1470.  
  1471.      {Page Down}      Use  {Page  Down}  until  you come to the record
  1472.                       with the infamous  Frank  Rogers.    We  want to
  1473.                       change the  salary and  that is  not part of the
  1474.                       list.
  1475.  
  1476.                                     25
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.      {Esc}13521       First  we  specify  which  records  to   be  the
  1484.                       default.   For Edit  this is the current record.
  1485.                       Then we go into build a  field list.   This time
  1486.                       we  start  with  a  list  on  the  bottom of the
  1487.                       screen.
  1488.  
  1489.      {Up Arrow}SS{Enter}
  1490.      {Esc}{Enter}1    We add salary to  our  list  and  then  exit and
  1491.                       execute edit again.
  1492.  
  1493.      {Down Arrow}
  1494.      {Down Arrow}
  1495.      {Down Arrow}
  1496.      {Down Arrow}     Four  {Down  Arrow}'s  bring  me  to  the salary
  1497.                       field.
  1498.  
  1499.      35000{Enter}     I take a little cut in pay. 
  1500.  
  1501.      {Esc}            If you are already out of  the Edit  Mode ignore
  1502.                       this {Esc}.
  1503.  
  1504.      R11              We do our list again and I am no longer on it.
  1505.  
  1506.      {any key}
  1507.  
  1508.           7.20.               CREATE PICTURE
  1509.                               --------------
  1510.  
  1511.      C4               Using the  'Create' 'Picture' we can save a snap
  1512.                       shot  of  which  databases,  indexes  and  other
  1513.                       information are  in effect at this moment.  That
  1514.                       way we can  latter  load  that  snapshot  and be
  1515.                       right back  where we started.  We get our screen
  1516.                       that is asking us for a file name.
  1517.  
  1518.      MAIL75{Enter}    We  use  the  name   MAIL75  to   indicate  it's
  1519.                       association with  the MAIL  database and that we
  1520.                       have a selection at  $75,000.    You  can create
  1521.                       your  naming  conventions  anyway  you  want for
  1522.                       files.  You are allowed up to 8 characters.
  1523.  
  1524.  
  1525.           7.21.             CLEARING DATABASES
  1526.                             ------------------
  1527.  
  1528.      N1               We have gone into 'Name' 'Database'.  We get our
  1529.                       familiar screen for entering file names.
  1530.  
  1531.      {Enter}          We press {Enter} without naming a file.  This is
  1532.                       the  way  you  clear  out  all   databases,  and
  1533.                       options.   If you  will use  {F4} to look at the
  1534.  
  1535.                                     26
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.                       Information  Window  you  will  see  nothing  is
  1542.                       defined.
  1543.  
  1544.           7.22.              RESTORE A PICTURE
  1545.                              -----------------
  1546.  
  1547.      5                We  are  already  in  the 'Name' menu. We select
  1548.                       'Picture'.  We get our Select File Screen.  This
  1549.                       time  we  want  to  pick  an existing file.  And
  1550.                       there it is on the top of the screen.
  1551.  
  1552.      {Up Arrow}M      Moves the light bar  to the  first file.   In my
  1553.                       case   'M'   move   the   highlight   right   to
  1554.                       'MAIL75.PIC' which is the  one I  want.   If you
  1555.                       have other files then move the light bar to this
  1556.                       one.
  1557.  
  1558.      {Enter}          Choose that file.    You  will  notice  from the
  1559.                       Information  Window  that  the  MAIL  index  and
  1560.                       database have been restored.
  1561.  
  1562.      R1               Going  to  'Report'  'List'  we  see  that which
  1563.                       records,  field  list  and  selection rules have
  1564.                       been restored.
  1565.  
  1566.      1                We execute the 'List'  command just  to see that
  1567.                       the same thing happens as before.
  1568.  
  1569.      {any key}
  1570.  
  1571.           7.23.               NAME A DATABASE
  1572.                               ---------------
  1573.  
  1574.      N1               We  do  'Name'  'Database'.    We  get  our File
  1575.                       Selection Screen with  a  list  of  databases on
  1576.                       top.
  1577.  
  1578.      {Up Arrow}       The first  database is  highlighted.  We move to
  1579.                       the file 'MAIL.DBF'
  1580.  
  1581.      M                You can move their the way I do  by pressing 'M'
  1582.                       or you can use your arrow keys.
  1583.  
  1584.      {Enter}          I  select   this  file.    I  get  another  File
  1585.                       Selection Screen.  This  time  it  is  asking me
  1586.                       for the  #1 index  file.  Since I want to access
  1587.                       my records by last name..
  1588.  
  1589.      {Up Arrow}
  1590.      M{Enter}         I choose the file  MAIL.IDX and  now it's asking
  1591.                       me for  INDEX #2.   You  can have  up to 7 index
  1592.                       files for one database active at  one time.   We
  1593.  
  1594.                                     27
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600.                       do not have any more for this one at this time.
  1601.  
  1602.      {Enter}          {Enter}  on  a  blank  line  tells  the computer
  1603.                       there is no more index files  for this database.
  1604.                       We end  up back  at the  menu.   You will notice
  1605.                       that the options we  had  in  effect  before for
  1606.                       this file will be gone.  Every time you 'Name' a
  1607.                       'Database' all option are cleared.
  1608.  
  1609.           7.24.               CREATE A FILTER
  1610.                               ---------------
  1611.  
  1612.      C3               We  now  choose  'Create'  'Filter'.    A filter
  1613.                       looks just  like the  rules we  used in 'Specify
  1614.                       selection rules'.  The difference is  that these
  1615.                       rules   affect   all   commands  where  'Specify
  1616.                       selection  rules'  only  affect  some  commands.
  1617.                       When a filter is in effect it will seem like the
  1618.                       current database only contains records that pass
  1619.                       the filter  test.   For example if under choices
  1620.                       you specified next 2  records it  would mean the
  1621.                       next 2 records that pass the filter test.  Again
  1622.                       we have our File Selection Screen.
  1623.  
  1624.      MAILU60{Enter}   The file name I  give it  is MAILU60  to signify
  1625.                       salaries  under  $60,000.    Now  I get my Field
  1626.                       Selection Screen.
  1627.  
  1628.      SALARY <
  1629.       60000{Enter}    I  decide  to  type  the  whole   thing  myself.
  1630.                       Notice  the  Information  Window  now shows this
  1631.                       filter in effect.
  1632.  
  1633.      R11              I execute a listing.  You should at least get my
  1634.                       name.  Remember we cut my salary.
  1635.  
  1636.  
  1637.      {any key}
  1638.  
  1639.           7.25.        CREATE A REPORT CONTROL FILE
  1640.                        ----------------------------
  1641.  
  1642.      C5               We pick  'Create' 'Report'.   We are asked for a
  1643.                       name for our report.
  1644.  
  1645.      MAIL{Enter}      Our favorite name.  We now get a  screen we have
  1646.                       not seen  before.  At the top there is a list of
  1647.                       fields in our database.  We are positioned  in a
  1648.                       large rectangle  with the  words 'Page heading:'
  1649.                       above us.
  1650.  
  1651.      {F1}             We now have a Help Box on the top of  the screen
  1652.  
  1653.                                     28
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.                       with  editing  characters  we can use instead of
  1660.                       the list of field names.
  1661.  
  1662.      {F1}             We get our list of field names back.
  1663.  
  1664.      MAILING{Enter}
  1665.      LIST{Enter}
  1666.      {Enter}
  1667.      {Enter}          This box contains 4  lines  and  it  if  for the
  1668.                       report heading.   What  ever we put in here will
  1669.                       be centered above our report.
  1670.  
  1671.      {Enter}
  1672.      1{Enter}
  1673.      {Enter}
  1674.      {Enter}          We leave the page width at  80, change  the left
  1675.                       margin  to  1,  leave  the right margin as 0 and
  1676.                       leave the lines/page at 58.
  1677.  
  1678.      {Enter}
  1679.      N{Enter}
  1680.      Y{Enter}
  1681.      {Enter}          We do not want double spaced, we do  not want to
  1682.                       page  eject  before  printing,  we  do want page
  1683.                       eject after  printing and  we do  not want plain
  1684.                       page.   Plain page  means that  page numbers and
  1685.                       the date are suppressed and the  page heading is
  1686.                       only printed  on the  first page.  We should now
  1687.                       be on a new  page with  it asking  for 'Group on
  1688.                       expression'
  1689.  
  1690.      CUSTOMER{Enter}  This  means  we  want  to group by customers and
  1691.                       non-customers.    It  now  wants  to   know  the
  1692.                       description  we  want  when  we  get a different
  1693.                       group.
  1694.  
  1695.      CUSTOMER 
  1696.      BREAK{Enter}     You will see this at the top of each group.
  1697.  
  1698.      {Enter}{Enter}   We do not want a  summary  only  and  we  do not
  1699.                       want to page eject after each group.
  1700.  
  1701.      {Enter}{Enter}   We do  not want  to sub-group within this group.
  1702.                       We now get a new  page.  This  is  the  page for
  1703.                       describing  what  information  we  want  in each
  1704.                       column.  You can  put  in  a  field  name  or an
  1705.                       expression.
  1706.  
  1707.      TRIM(FIRST_NAME)+' '+
  1708.      TRIM(LAST_NAME){Enter}        You  can  use  all  the  dBASE type
  1709.                                    functions to create expressions.
  1710.  
  1711.  
  1712.                                     29
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.      30{Enter}        We change the default width to 30.   If when the
  1719.                       report  is  created  the  name is bigger then 30
  1720.                       characters it will wrap to the next line.
  1721.  
  1722.      {Enter}{Enter}{Enter}
  1723.      NAME{Enter}      You get 4 lines for the column headings.  If the
  1724.                       expression  is   alphabetic  it   will  be  left
  1725.                       justified.  You will notice that a layout of the
  1726.                       report  is  created  right  above the 'Contents'
  1727.                       box.
  1728.  
  1729.      STATE{Enter}{Enter}
  1730.      {Enter}{Enter}{Enter}
  1731.      STATE{Enter}     The next field I put in is STATE.   I  leave the
  1732.                       default  width  of  2  and  then  enter a column
  1733.                       heading of STATE.  We then go to a new page.
  1734.  
  1735.      {Page UP}        Lets go back to the page with STATE on it  for a
  1736.                       minute.  You will notice that the width has been
  1737.                       changed to 5 even though we left the  default of
  1738.                       2 in.   What has happened is it has been changed
  1739.                       to fit the column heading STATE we put in.
  1740.  
  1741.      {Page Down}      Moving right along.
  1742.  
  1743.      PHONE{Enter}{Enter}
  1744.      {Enter}{Enter}{Enter}
  1745.      PHONE{Enter}
  1746.      SALARY{Enter}{Enter}
  1747.      0{Enter}{Enter}  We decide we do not want  any decimal  places in
  1748.                       reporting SALARY and that we do want to total on
  1749.                       this field.   Numeric  fields  get  their column
  1750.                       headings right justified.
  1751.  
  1752.      {Enter}{Enter}{Enter}
  1753.      SALARY{Enter}
  1754.      {Ctrl {Home}}    After  putting  in  SALARY  we  decide we really
  1755.                       wanted CUSTOMER to  be  the  first  item  on our
  1756.                       report.    {Ctrl  {Home}}  brings up a menu that
  1757.                       allows you to jump  to  different  parts  of the
  1758.                       report definition.  
  1759.  
  1760.      F                This gets  us to  the first column.  We could of
  1761.                       used a number of {Page Up}'s to get here also.
  1762.  
  1763.      {Ctrl N}         {Ctrl N} is used to insert columns.
  1764.  
  1765.      CUSTOMER{Enter}{Enter}
  1766.      {Enter}{Enter}{Enter}
  1767.      CUS.{Enter}      CUSTOMER is now inserted.
  1768.  
  1769.      {Ctrl {Home}}S   We call up the  menu again  and issue  a 'S' for
  1770.  
  1771.                                     30
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.                       save.  We are back to the menu.  
  1778.  
  1779.           7.26.              RUNNING A REPORT
  1780.                              ----------------
  1781.  
  1782.      R31              We execute  the 'Report'  command.  It is asking
  1783.                       for the name of the control file.  Since we just
  1784.                       created it notice it already has the name on the
  1785.                       bottom line.
  1786.  
  1787.      {Enter}          We press  {Enter} to  start the  report. What is
  1788.                       this?  'ERROR IN COMMAND' 'Improper data type in
  1789.                       group expression.'   I  don't think  it likes to
  1790.                       have  logical  field  for  grouping on. Let's go
  1791.                       back and fix it.
  1792.  
  1793.      {any key}
  1794.      {any key}
  1795.  
  1796.           7.27.        MODIFY A REPORT CONTROL FILE
  1797.                        ----------------------------
  1798.  
  1799.      M4               'Modify' 'Report'.  We are asked for the name of
  1800.                       the file.   Again  the correct  on is already on
  1801.                       the bottom line.
  1802.  
  1803.      {Enter}          We  get  the  same  opening  screen  as  when we
  1804.                       created the  report except this time our data is
  1805.                       there.
  1806.  
  1807.      {Page Down}      This will get us to the Group on screen.
  1808.  
  1809.      IIF(CUSTOMER,
  1810.      'YES','NO')      We use  the dBASE  IIF function  to convert this
  1811.                       expression to  'YES' if  CUSTOMER is true and to
  1812.                       'NO' if CUSTOMER is false.  This starts  to show
  1813.                       the power of 1 on 1 = 3!! but it also shows that
  1814.                       it takes quite a bit of learning to  harness all
  1815.                       that power.   Let's change what's printed on the
  1816.                       report also.
  1817.  
  1818.      {Enter}{Enter}
  1819.      {Enter}{Enter}
  1820.      {Enter}{Enter}
  1821.      IIF(CUSTOMER,
  1822.      'A CUSTOMER',
  1823.      'NOT A CUSTOMER')
  1824.      {Enter}
  1825.      {Ctrl {End}}     Another  way  to  save  a  report  control file.
  1826.                       Let's try our report.
  1827.  
  1828.  
  1829.  
  1830.                                     31
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.           7.28.              RUNNING A REPORT
  1837.                              ----------------
  1838.  
  1839.      R31{Enter}       And there's  are report.  There is a good chance
  1840.                       you are getting  too  many  breaks  on CUSTOMER.
  1841.                       That's because  if you  are going  to break on a
  1842.                       field you should have  your database  ordered by
  1843.                       that field.  First lets get rid of the filter so
  1844.                       we have all of our records.
  1845.  
  1846.           7.29.              REMOVING A FILTER
  1847.                              -----------------
  1848.      {any key}
  1849.  
  1850.      N4{Enter}Naming a blank filter file removes the active filter.
  1851.  
  1852.           7.30.               CREATE AN INDEX
  1853.                               ---------------
  1854.  
  1855.      A1customer
  1856.      {Enter}          We name our index file customer.
  1857.  
  1858.      CUSTOMER{Enter}  We index on the CUSTOMER field.
  1859.  
  1860.           7.31.              RUNNING A REPORT
  1861.                              ----------------
  1862.  
  1863.      R31{Enter}       This  time   our   report   will   be  organized
  1864.                       correctly.    First  we  will  get  a group that
  1865.                       aren't customers  and then  we will  get a group
  1866.                       that is customers.  The salary should be totaled
  1867.                       for each group and there is a final total.
  1868.  
  1869.      {any key}
  1870.  
  1871.           7.32.               NAME A DATABASE
  1872.                               ---------------
  1873.  
  1874.      N1{Up Arrow}S
  1875.      {Enter}          As a present to you we have included  a database
  1876.                       with the  states and their postal abbreviations.
  1877.                       You have picked the database STATE and it should
  1878.                       now be asking for the first index file.
  1879.  
  1880.      STATE{Enter}     We pick  the index named STATE.  This is ordered
  1881.                       by the state name.  You are now  being asked for
  1882.                       another index file.
  1883.  
  1884.      STATECD{Enter}   This  index  file  orders  the  database  by the
  1885.                       postal code.  You  are now  being asked  for the
  1886.                       third index  file.  You can index a file with up
  1887.                       to seven indexes.  We only have two.
  1888.  
  1889.                                     32
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.      {Enter}          We tell the computer  that's all  the indexes by
  1897.                       hitting {Enter}  with no  index file.   You will
  1898.                       notice in the Information  Window  that  the two
  1899.                       indexes are shown.
  1900.  
  1901.           7.33.                   DISPLAY
  1902.                                   -------
  1903.  
  1904.      R21              We  go  to  the  Report menu and choose Display.
  1905.                       Notice how you only get one state.   That is the
  1906.                       default for the Display command.
  1907.  
  1908.      {any key}
  1909.      {Enter}3
  1910.      {Enter}1         This time  we specify  All.  Notice how the list
  1911.                       stops after the page fills up.  This  is another
  1912.                       difference  between  List  and  Display.    Also
  1913.                       notice how  our list  is ordered  by state name.
  1914.                       When  you  have  more  then one index, the first
  1915.                       index you enter becomes  the  primary  index and
  1916.                       that is the order the data will be accessed in.
  1917.  
  1918.           7.34.                    ORDER
  1919.                                    -----
  1920.  
  1921.      {any key}{any key}
  1922.      {any key}A3      We have  now moved  over to the Arrange menu and
  1923.                       picked Order.  The computer should  be asking us
  1924.                       to enter  the order  number.   This is  a way to
  1925.                       tell the computer to use one of the  other index
  1926.                       files we have specified as the primary index.
  1927.  
  1928.      2{Enter}R11      We tell  it to make the second index the primary
  1929.                       index.  We then go back over to  the Report menu
  1930.                       and List.  If you looked real fast you will have
  1931.                       noticed that  the listing  came out  in order by
  1932.                       postal abbreviation.
  1933.  
  1934.      {any key}
  1935.  
  1936.           7.35.              SPECIAL SEEK KEY
  1937.                              ----------------
  1938.  
  1939.      {F4}...          Press {F4} until you have a window at the bottom
  1940.                       of the screen with '[Alt U]'  in the  upper left
  1941.                       hand corner.  This is a list of special keys you
  1942.                       can use to execute some of the commands from any
  1943.                       where in the menu with one keystroke.
  1944.  
  1945.      {Alt S}          This is  one of those special keys you can press
  1946.                       any time you are at a menu item.  This  one does
  1947.  
  1948.                                     33
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.                       the  same  thing  as  the Position Seek command.
  1955.                       It should be asking you to enter the key to look
  1956.                       up.
  1957.  
  1958.      NY{Enter}        Since  we  have  set  Order  to the second index
  1959.                       which  is  based  on  the  two  character postal
  1960.                       abbreviation, we  can now  look up records based
  1961.                       on that abbreviation.   If  you  don't  have the
  1962.                       Record Window on the bottom of the screen, press
  1963.                       {F3} until you get it.  Did we find the New York
  1964.                       record?  Try out your state.
  1965.  
  1966.           7.36.             SPECIAL BROWSE KEY
  1967.                             ------------------
  1968.  
  1969.      {Alt Z}1         Another special  key.  You will of gone into the
  1970.                       Browse mode.  This  one does  not allow updating
  1971.                       but does  allow you  to look  through your whole
  1972.                       database.  We  will  browse  through  the Browse
  1973.                       mode a little latter.
  1974.  
  1975.      {Esc}{F5}        Another way  to get  into the browse mode.  This
  1976.                       one allows updating.  You can  tell I  think the
  1977.                       Browse mode is pretty good.  You can get into it
  1978.                       four different ways.
  1979.  
  1980.      {Esc}A3
  1981.      0{Enter}R11      This time we went over to  the arrange  menu and
  1982.                       changed  the  order  to  0.  This is telling the
  1983.                       computer not to use  any index  in accessing the
  1984.                       database.  When the listing comes out it will be
  1985.                       in  the  order  that  the  records  are  in  the
  1986.                       database.    We  keep on coming back and listing
  1987.                       or displaying our file.  Let me show you a short
  1988.                       cut  that  you  can  use  here and anywhere that
  1989.                       repeat the same sequence of characters  over and
  1990.                       over again.
  1991.  
  1992.           7.37.                   MACROS
  1993.                                   ------
  1994.  
  1995.      {any key}{F2}    Your screen  should of gone blank except for the
  1996.                       message Enter Macro Key, F2  to  End.    What we
  1997.                       going to  do is  redefine one of the keys on the
  1998.                       keyboard so it will play back a set of keys that
  1999.                       we record.  What the computer wants right now is
  2000.                       which key we want to redefine.
  2001.  
  2002.      {F9}             We are going to redefine the {F9} key.  You will
  2003.                       now  get  the  message,  Enter Your Macro, F2 to
  2004.                       End.  Before we came  in  here  we  went through
  2005.                       the scenario  of what we wanted to do.  We wrote
  2006.  
  2007.                                     34
  2008.  
  2009.  
  2010.  
  2011.  
  2012.  
  2013.                       those keys down.
  2014.  
  2015.      {Esc}{Esc}{Esc}
  2016.      {Esc}{Esc}
  2017.      R1311            Why the 5 {Esc}s?   We  may want  to invoke this
  2018.                       macro from anywhere.  The one restriction is you
  2019.                       must be at a menu item.  Since we could  be at a
  2020.                       level 4  menu when  we invoke  it or  a level 2,
  2021.                       the 5 {Esc}s force us to  be at  a level  1 menu
  2022.                       each  time  before  the  rest  of  the  macro is
  2023.                       invoked.  R gets us to  the Report  menu. 1 will
  2024.                       choose  list.   3  will   choose  Specify  which
  2025.                       records, 1 will choose  All, and  1 will Execute
  2026.                       the List command.
  2027.  
  2028.      {F2}             {F2} ends the definition of this key.  You again
  2029.                       get the message Enter Macro Key, F2 to  End.  We
  2030.                       could define  another macro  at this point if we
  2031.                       wanted to.
  2032.  
  2033.      {F2}             That is the only one we  will define  this time.
  2034.                       You should  be back  to the  menu item where you
  2035.                       called macro from.
  2036.  
  2037.      {F9}             If all went well you should of gotten  a List of
  2038.                       the database.  Let's save the handy macro.
  2039.  
  2040.           7.38.               CREATE A MACRO
  2041.                               --------------
  2042.  
  2043.      {any key}
  2044.      C7LIST{Enter}    We have named this macro LIST.  You can now call
  2045.                       it back at any  time  by  using  the  Name Macro
  2046.                       menu.   Let's get our MAIL database back again.
  2047.  
  2048.           7.39.              CREATE A RELATION
  2049.                              -----------------
  2050.  
  2051.      N1MAIL{Enter}
  2052.      MAIL{Enter}
  2053.      {Enter}          We have  used the  Name Database to get our MAIL
  2054.                       database and our MAIL index.  Now let's create a
  2055.                       relation between our MAIL database and the STATE
  2056.                       database.
  2057.  
  2058.      C2MAIL{Enter}    We choose  Create Relation.   Of  course we name
  2059.                       our relation MAIL.  Now we get a screen with the
  2060.                       fields from our MAIL  database and  we are asked
  2061.                       to enter  the key expression.  What the computer
  2062.                       is looking for is what field  of data  from this
  2063.                       database can  it use to look up the state in the
  2064.                       STATE database.
  2065.  
  2066.                                     35
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.      {Up Arrow}S
  2074.      {Enter}          This should of selected the field  STATE and put
  2075.                       it on the bottom line.
  2076.  
  2077.      {Enter}          Since this  is the  full expression we choose it
  2078.                       by hitting {Enter}.   We are  now asked  for the
  2079.                       related database name.
  2080.  
  2081.      {Up Arrow)S
  2082.      {Enter}          This should  choose the  STATE database.  We are
  2083.                       now asked for the related index file name.  This
  2084.                       means, what  index for  the STATE database can I
  2085.                       use to look up the 2 character state code.
  2086.  
  2087.      STATECD{Enter}   We choose STATECD.  You could use the {Up Arrow}
  2088.                       and then  move to  STATECD and {Enter} to do the
  2089.                       same thing.  You  will  now  get  a  screen that
  2090.                       describes any  relationships in effect.  The key
  2091.                       field should be STATE, the related database file
  2092.                       should  be  STATE.DBF,  the  related  index file
  2093.                       should be  STATECD.IDX.   Down on  the bottom of
  2094.                       the  screen  you  should  see:  Enter  number to
  2095.                       change, 0 to save, 2 to add a relation.   If you
  2096.                       wanted to modify a relation you would enter that
  2097.                       relations number.  You  would  then  be  able to
  2098.                       change  any  of  the  3  fields.    To  remove a
  2099.                       relation you just put in a blank key field name.
  2100.                       Let's add another relation.
  2101.  
  2102.      2{Enter}         Notice we again get our screen with field names.
  2103.                       The difference this time is that the fields from
  2104.                       the  state  database  are  also listed.  You can
  2105.                       tell which  ones  are  from  the  state database
  2106.                       because they are preceded by 'STATE->'.
  2107.  
  2108.      {Up Arrow}CCC    Notice  that   although  code   from  the  STATE
  2109.                       database is preceded by the alias 'STATE->', the
  2110.                       computer still matches on the field name.  
  2111.  
  2112.      {Enter}{Enter}   We  choose  STATE->CODE.  This  goes down to the
  2113.                       bottom line and we pick it as our expression.
  2114.  
  2115.      3!!_MENU{Enter}
  2116.      3!!_MENU{Enter}  We don't really have another database  to relate
  2117.                       to but  we can  use this  as an example.  Notice
  2118.                       the  information  about  our  new  relationship.
  2119.                       Also notice  on the bottom line that it now says
  2120.                       3 to add a relation.
  2121.  
  2122.      0{Enter}E9       We save  our relationship  and go  over to Extra
  2123.                       and do  a Status.  We can see here what files we
  2124.  
  2125.                                     36
  2126.  
  2127.  
  2128.  
  2129.  
  2130.  
  2131.                       are using and what relationships are set.
  2132.  
  2133.      {any key}        Notice the database in workarea (select area) 9.
  2134.                       This is the database that the Help System uses.
  2135.  
  2136.           7.40.              MODIFY A RELATION
  2137.                              -----------------
  2138.  
  2139.      {any key}
  2140.      {any key}M2
  2141.      {Enter}          This time  we go  to Modify Relation.  We choose
  2142.                       the relation name MAIL.  We now have  the screen
  2143.                       that shows the relations.
  2144.  
  2145.      2{Enter}         We are  going to modify the second relationship.
  2146.                       You will have the screen with the field names on
  2147.                       it.  On the bottom line will be STATE->CODE.
  2148.  
  2149.      {Ctrl Y}         Hold the  Ctrl key and press Y at the same time.
  2150.                       STATE->CODE should disappear from the last line.
  2151.  
  2152.      {Enter}          Putting in a blank  key  expression  is  how you
  2153.                       delete relations.  The second relation should be
  2154.                       gone from the screen.
  2155.  
  2156.           7.41.           REPORTING RELATED FILES
  2157.                           -----------------------
  2158.  
  2159.      0{Enter}R121     We  save  this  relationship  and  go  to Report
  2160.                       Specify fields.   We now have a choice of fields
  2161.                       from both database.
  2162.  
  2163.      {Up Arrow}
  2164.      {Enter}{Enter}
  2165.      SSS{Enter}{Esc}  We choose FIRST_NAME, LAST_NAME, STATE->STATE
  2166.  
  2167.      {Enter}1         We get a listing.   Notice  how  the  full state
  2168.                       name appears.
  2169.  
  2170.           7.42.              COPYING DATABASES
  2171.                              -----------------
  2172.  
  2173.      {any key}
  2174.      A5{Enter}        Now we will make a copy of our database.  Notice
  2175.                       you have the same choices as for list.   We have
  2176.                       already specified  certain fields.  The computer
  2177.                       is looking for the name of  the new  database we
  2178.                       are going to copy to.
  2179.  
  2180.      MAIL1{Enter}     We  choose  MAIL1.    The  computer executes the
  2181.                       Copy command.    Let's  save  a  picture  of our
  2182.                       environment and go and look at that file.
  2183.  
  2184.                                     37
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.      {any key}
  2192.      C4MAIL1{Enter}
  2193.      N1MAIL1{Enter}
  2194.      {Enter}{F9}      Remember the {F9} macro.  You should have a list
  2195.                       of the database.  It should  look just  like our
  2196.                       last list  from the  MAIL database.  Let's bring
  2197.                       back our picture and try a sort.
  2198.  
  2199.           7.43.               SORT A DATABASE
  2200.                               ---------------
  2201.  
  2202.      {any key}
  2203.      N5MAIL1{Enter}
  2204.      A4{Enter}        The computer wants to  know what  field you want
  2205.                       to sort on.
  2206.  
  2207.      STATE->STATE
  2208.      {Enter}          We are going to sort on the full state name from
  2209.                       the related STATE file.   We get a message enter
  2210.                       A ascending, d Descending.  
  2211.  
  2212.      A{Enter}         We put  in A for ascending.  Now it want to know
  2213.                       if we want to ignore case.  It means do  we want
  2214.                       to  sort  on  all  upper  case  or do we want to
  2215.                       separate by upper and lower case.
  2216.  
  2217.      Y{Enter}         We want it all sorted on upper case.  Now  it is
  2218.                       asking us for another sort field.
  2219.  
  2220.      zip{Enter}
  2221.      a{Enter}Y{Enter} We  sort  on  zip  within  state.    Again it is
  2222.                       looking for a sort field.
  2223.  
  2224.      {Enter}          Now it wants to know the name of the new file.
  2225.  
  2226.      MAILSORT{Enter}  And it goes ahead and sorts  it.   Now lets turn
  2227.                       our  index   off  and  see  what  the  different
  2228.                       position commands do.  You will be familiar with
  2229.                       some of  them because they do the same things as
  2230.                       some of the special keys.
  2231.  
  2232.      {any key}
  2233.  
  2234.           7.44.      CHANGING POSITION IN THE DATABASE
  2235.                      ---------------------------------
  2236.  
  2237.      A30{Enter}
  2238.      P5               We go over to a\Arrange and set Order to 0. Then
  2239.                       we go to Position and choose Top.  Make sure the
  2240.                       Record Widow is on at the bottom of  the screen.
  2241.                       If it's  not use  the {F4} to get it on.  Notice
  2242.  
  2243.                                     38
  2244.  
  2245.  
  2246.  
  2247.  
  2248.  
  2249.                       that the current record is now number 1.
  2250.  
  2251.      6                When we pick Bottom  the current  record becomes
  2252.                       equal to the number of records.
  2253.  
  2254.      72{Enter}        When  we  do  a  Goto  we are asked to Enter the
  2255.                       record number.  We  choose  2.    Notice  at the
  2256.                       bottom we are now at record 2.  The Goto command
  2257.                       is not affected  by  indexes.    The  same thing
  2258.                       would of  happen if  we had  an index.  It would
  2259.                       of gone to record 2.
  2260.  
  2261.      41{Enter}        When we pick skip  we  are  asked  to  enter the
  2262.                       number of  records to  skip.   We skip one so we
  2263.                       are now at record 3.
  2264.  
  2265.      4-2{Enter}       You can skip both ways.  We asked it to  go back
  2266.                       two records so we should now be at record number
  2267.                       1.
  2268.  
  2269.      2                The Locate command is used to find a record that
  2270.                       meets a  test.  You must specify selection rules
  2271.                       to use it.  It is up to you whether  you set any
  2272.                       of the other options.
  2273.  
  2274.      4                We pick  Set selection  rules.   We are asked as
  2275.                       before to enter the rules we want.
  2276.  
  2277.      STATE='CT'
  2278.      {Enter}          This should find all  records  with  a  state of
  2279.                       'CT'.
  2280.  
  2281.  
  2282.      1                We execute  the Locate command.  If we don't get
  2283.                       an error message it means it has found  a record
  2284.                       that  fits  our  rules.    Notice what record it
  2285.                       stopped at.
  2286.  
  2287.      3                We use the Continue  command  to  find  the next
  2288.                       record that  meets the Locate rules.  If it does
  2289.                       not find any more that meet  the rules  you will
  2290.                       get a message.  Keep on pressing 3 until you get
  2291.                       the message that no more records are found.  The
  2292.                       Browse  command  under  Position  does not allow
  2293.                       updating.  Let's go  over to  Update to  use the
  2294.                       browse there.
  2295.  
  2296.           7.45.                 BROWSE MODE
  2297.                                 -----------
  2298.  
  2299.      U31              Since the  last thing  that we did positioned us
  2300.                       at the end of the database you should  be in the
  2301.  
  2302.                                     39
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.                       Browse  mode   positioned  at  the  end  of  the
  2309.                       database.
  2310.  
  2311.      {Page Up}        You should now be at  the  top  of  the database
  2312.                       with  all  your  records showing unless you were
  2313.                       really ambitious and typed in many  records.  If
  2314.                       so page  up until  you get  to the  start of the
  2315.                       database.
  2316.  
  2317.      Bill{Ctrl Y}
  2318.      {Enter}Jones
  2319.      {Ctrl Y}{Enter}
  2320.      {Ctrl Y}{Enter}  Notice when you do the {Ctrl Y} the  rest of the
  2321.                       field  is  erased.    In  the ADDRESS1 field the
  2322.                       whole field is erased.  When you hit the {Enter}
  2323.                       in the  ADDRESS1 field  the cursor  goes down to
  2324.                       the ADDRESS1  field of  the next  record.  Where
  2325.                       did the  rest of  the record go?  We have to use
  2326.                       panning to get to it.
  2327.  
  2328.      {Ctrl {Right Arrow}}
  2329.      {Ctrl {Right Arrow}}
  2330.                       Depending  on  what  will  fit  on  the  screen,
  2331.                       panning  will  bring  up  more  fields  from the
  2332.                       record.    You  should  now  have  ADDRESS1  and
  2333.                       ADDRESS2 on the screen.
  2334.  
  2335.      {Ctrl {Right Arrow}}
  2336.      {Ctrl {Right Arrow}}
  2337.                       You  should  now  have  all the fields from CITY
  2338.                       through CUSTOMER  on  the  screen.    The cursor
  2339.                       should be on CITY.
  2340.  
  2341.      {End}{End}       {End} moves you to the next field.
  2342.  
  2343.      {Up Arrow}       This moves you to the same field in the previous
  2344.                       record.
  2345.  
  2346.      {Home}           This moves you to the previous field.
  2347.  
  2348.      {Ctrl {Left Arrow}}
  2349.                       This pans you to the left.
  2350.  
  2351.      {Ctrl {Left Arrow}}
  2352.      {Ctrl {Left Arrow}}
  2353.      {Ctrl {Left Arrow}}
  2354.      {Ctrl {Left Arrow}}
  2355.                       Let's  pan  all  the  way  to   the  left  until
  2356.                       FIRST_NAME is on the screen again.
  2357.  
  2358.      {Ctrl {Home}}    This pops  up a  menu at  the top of the screen.
  2359.                       The first four  work  exactly  the  same  as the
  2360.  
  2361.                                     40
  2362.  
  2363.  
  2364.  
  2365.  
  2366.  
  2367.                       commands in  our Position  menu.  fiNd works the
  2368.                       same as Seek.   You  pick  these  by  typing the
  2369.                       capital  letter  in  each  command or moving the
  2370.                       lite bar and pressing {Enter}.  
  2371.  
  2372.      L2{Enter}        We have chosen Lock and entered 2 for the number
  2373.                       of fields.   What  this does is lock the current
  2374.                       left most 2 fields  on  the  screen  so  that no
  2375.                       matter  how  you  pan  they  will  remain on the
  2376.                       screen.
  2377.  
  2378.      {Ctrl {Right Arrow}}
  2379.      {Ctrl {Right Arrow}}
  2380.      {Ctrl {Right Arrow}}
  2381.                       Try it out.  Notice how FIRST_NAME and LAST_NAME
  2382.                       remain on the screen.
  2383.  
  2384.      {Ctrl {Home}}F
  2385.      STATE{Enter}     This time  when we  call up  the menu we ask for
  2386.                       Freeze and enter STATE for the  field.   Now the
  2387.                       cursor should be in the STATE field and only the
  2388.                       state field  should be  highlighted where before
  2389.                       the whole line was highlighted.
  2390.  
  2391.      {Enter}          The cursor  goes to the next line and remains in
  2392.                       the STATE field.  That  what  Freeze  does.   It
  2393.                       freezes the field you can enter data into.  This
  2394.                       works great when you  have a  lot of  changes to
  2395.                       one field in the database.
  2396.  
  2397.      {Esc}321         We  go  out  of  Browse  and then right back and
  2398.                       choose Build a field list and Fields.  This is a
  2399.                       different field list then you got with the other
  2400.                       commands.  Notice you only have  fields from the
  2401.                       master database.  You cannot browse through more
  2402.                       then one database at a time.
  2403.  
  2404.      {Up Arrow}{Enter}
  2405.      {Enter}{Enter}
  2406.      C{Enter}{Enter}
  2407.      B{Enter}
  2408.      {Esc}{Enter}
  2409.      310{Enter}       We choose the full name, ADDRESS1,  CITY, STATE,
  2410.                       and  BIRTH.    Exit  the  Field  Selection Mode,
  2411.                       choose Width and enter  10 for  the maximum size
  2412.                       of browse field.  What this means is the largest
  2413.                       field will only take  up  10  characters  on the
  2414.                       screen.
  2415.  
  2416.      1                Now  when  we  Execute  Browse  we  can see more
  2417.                       fields.  Even if the whole field does not appear
  2418.                       we can still update it.
  2419.  
  2420.                                     41
  2421.  
  2422.  
  2423.  
  2424.  
  2425.  
  2426.  
  2427.      Frank{Enter}
  2428.      Frankensteinwiches
  2429.      {Enter}          Notice the way the field scrolls to allow you to
  2430.                       put in data.  Look at the highlighted bar at the
  2431.                       bottom of  the screen.   To the right of the one
  2432.                       with Rec in it are two  more columns.   They are
  2433.                       blank except  if you  have insert  on.  Then the
  2434.                       second from the right has Ins in it.
  2435.  
  2436.      {Ctrl U}         Now look at the second column from the  right in
  2437.                       the highlighted  bar on  the bottom.   It should
  2438.                       have 'Del'  in it.   What  we have  done is mark
  2439.                       this record for deletion.
  2440.  
  2441.      {Ctrl U}{Ctrl U} This keeps  on turning  deletion on and off.  It
  2442.                       should now be on.
  2443.  
  2444.      {Esc}31          We used {Esc} to get out of Browse and then came
  2445.                       right back  in.  Notice that the changes we made
  2446.                       to the  first record  did not  take.   This is a
  2447.                       common mistake.  If you make changes to a record
  2448.                       and {Esc} out before  you go  to another record,
  2449.                       those changes will not be recorded.
  2450.  
  2451.      {Page Down}
  2452.      {Page Down}
  2453.      {Down Arrow}     If you  go past  the end of the file you will be
  2454.                       asked 'Add new records?(Y/N)'   If  you want you
  2455.                       can add new records in the Browse Mode
  2456.  
  2457.      N{Esc}3          Just a quick explanation of the other options in
  2458.                       the Browse mode.  Lock is the same  Lock you got
  2459.                       when you  used the  menu within  Browse.  Follow
  2460.                       determines  whether  the  cursor  will  follow a
  2461.                       record  when   you  change  part  of  the  index
  2462.                       expression.   Append determines  whether you can
  2463.                       append  to  the  database  using browse.  Modify
  2464.                       determines whether you can update during browse.
  2465.                       The Browse under Position is set to No modify.
  2466.  
  2467.           7.46.                   REPLACE
  2468.                                   -------
  2469.  
  2470.      {Esc}4631        This time  we choose  Replace.  Again as in many
  2471.                       commands you can specify different options.  The
  2472.                       field list option has no effect on this command.
  2473.                       We  clear  out  the  old  options  and  then set
  2474.                       records to All.  The default if we don't do this
  2475.                       is the current record.
  2476.  
  2477.      1                We Execute the command and it  asks us  to enter
  2478.  
  2479.                                     42
  2480.  
  2481.  
  2482.  
  2483.  
  2484.  
  2485.                       the field to replace.
  2486.  
  2487.      CITY{Enter}      Let's  move  everyone.    It  now  asks  for the
  2488.                       expression  to  replace   with.      Read  about
  2489.                       expressions in  the Help  Documentation.  Simply
  2490.                       it  means  for  here  we  have  to  enclose  our
  2491.                       character strings in quotes.
  2492.  
  2493.      'Trumbull'{Enter}     And it asks for another field.
  2494.  
  2495.      STATE{Enter}
  2496.      "CT"{Enter}      It doesn't matter which quote you use as long as
  2497.                       you use the same one on both ends.
  2498.  
  2499.      BIRTH{Enter}
  2500.      CTOD('04/22/44')
  2501.      {Enter}          We have to convert our character  dates to dBASE
  2502.                       dates.
  2503.  
  2504.      {Enter}          Just  {Enter}  in  response to the field request
  2505.                       gets the command to execute.
  2506.  
  2507.      31{Page Up}      Checking it out in the Browse  mode.   Every one
  2508.                       now lives  in Trumbull  CT and has a birthday of
  2509.                       4/22/44.
  2510.  
  2511.           7.47.                   DELETE
  2512.                                   ------
  2513.  
  2514.      {Esc}5311        Delete is used to mark records for deletion.  It
  2515.                       does  not  actually  delete the records from the
  2516.                       database.   We have  specified all  records.  If
  2517.                       you  do  not  specify  the  default  is only the
  2518.                       current record.
  2519.  
  2520.           7.48.                    PACK
  2521.                                    ----
  2522.  
  2523.      7                Pack is the  command  that  removes  all records
  2524.                       marked for deletion from the database.  You will
  2525.                       be told how many records are marked and asked if
  2526.                       you want to display them.
  2527.  
  2528.      Y{Enter}         We get  a display  of the records to be deleted.
  2529.                       In this case it is all the records.
  2530.  
  2531.      {any key}
  2532.      N{Enter}         We are asked if we really  want to  delete these
  2533.                       records.  We change our minds and say no.
  2534.  
  2535.           7.49.                   RECALL
  2536.                                   ------
  2537.  
  2538.                                     43
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544.  
  2545.      61               Recall  removes  the  delete  mark from records.
  2546.                       Since we have already  specified all  it will be
  2547.                       done for  the whole  database.  The default just
  2548.                       like for Delete is the current record.
  2549.  
  2550.      7                Now when  we do  a pack  we are  told that there
  2551.                       were no records marked for deletion.
  2552.  
  2553.      {any key}
  2554.  
  2555.           7.50.                  STRUCTURE
  2556.                                  ---------
  2557.  
  2558.      E8               Structure gives you a description of the current
  2559.                       database.
  2560.  
  2561.           7.51.            CHANGING DIRECTORIES
  2562.                            --------------------
  2563.  
  2564.      {any key}
  2565.      4\{Enter}39      Change directory will  allow  you  to  change to
  2566.                       another  directory  and  make  that  the current
  2567.                       directory.  The only  one I'm  sure you  have is
  2568.                       '\'  so  I  have  gone  there  and  done  a full
  2569.                       directory.
  2570.  
  2571.      {any key}{Esc}
  2572.      4\3!!{Enter}     And back to \3!!.
  2573.  
  2574.           7.52.                COPYING FILES
  2575.                                -------------
  2576.  
  2577.      6                We choose copy.   We get  a full  listing of all
  2578.                       the files in \311.
  2579.  
  2580.      {Up Arrow}P      Keep   on   pressing   'P'  until  PLACE.PIC  is
  2581.                       highlighted.
  2582.  
  2583.      {Enter}
  2584.      PLACE1.PIC
  2585.      {Enter}          We name the new  file PLACE1.PIC.   We  now have
  2586.                       two identical  files.  Rename works the same way
  2587.                       except you only end up with one file  by the new
  2588.                       name.    Erase  deletes  the  file  you  choose.
  2589.                       Command mode is the same Command mode as  in the
  2590.                       opening  menu  except  you  cannot execute dBASE
  2591.                       type  programs  from  there.    You  can execute
  2592.                       programs that  have been compiled with FoxBASE+.
  2593.                       Execute DOS is also  the  same  as  the  one you
  2594.                       execute from  the main  menu.  The difference is
  2595.                       you will have less memory to work with.   If you
  2596.  
  2597.                                     44
  2598.  
  2599.  
  2600.  
  2601.  
  2602.  
  2603.                       only have  512K you  may not be able to use this
  2604.                       command.
  2605.  
  2606.           7.53.                     SET
  2607.                                     ---
  2608.      S                Set allows you  to  set  a  number  of different
  2609.                       options.
  2610.  
  2611.      7                More  gives  you  even  more  Set options.  Read
  2612.                       about them in the Help Manual and in  your dBASE
  2613.                       books.
  2614.  
  2615.           7.54.             MODIFYING PROGRAMS
  2616.                             ------------------
  2617.  
  2618.      {Esc}
  2619.      M7               Modify  Program  asks  you  for the name of your
  2620.                       program.  
  2621.  
  2622.      MAIL{Enter}      It will  automatically add  the extension '.PRG'
  2623.                       to the  file name.  It will also delete any file
  2624.                       by that name with  the  extension  of  '.FOX' or
  2625.                       '.III'.  We are put in the file edit mode.  This
  2626.                       edit mode follows the same rules  that were used
  2627.                       in  editing  a  memo  field.  Using {F1} you can
  2628.                       toggle a help screen at the  top of  the page on
  2629.                       and  off.    This  help screen will tell you the
  2630.                       different editing keys you can use.
  2631.  
  2632.      SET TALK OFF
  2633.      {Ctrl W}         This saves our work.  {Ctrl  {Page Up}  would of
  2634.                       done the  same thing.   Modify  a file works the
  2635.                       same way but it  assumes a  '.TXT' extension and
  2636.                       does not automatically delete any files.  
  2637.  
  2638.                       Modify Database, Filter, and Label work the same
  2639.                       way that  the corresponding  Create commands did
  2640.                       except you start out with data.
  2641.  
  2642.           7.55.                MODIFY FORMAT
  2643.                                -------------
  2644.  
  2645.      8MAIL{Enter}     We are  going to  create a  screen format to use
  2646.                       with the Edit and Append commands.   To  do this
  2647.                       we have  to use  some Dbase commands.  The '@ <x
  2648.                       location>, <y location> SAY  <character string>'
  2649.                       will  print  the  character  string  at  the x,y
  2650.                       location we  specify.   The '@  <x location>, <y
  2651.                       location> GET  <field name>'  will allow a place
  2652.                       on the screen for inputing information  into the
  2653.                       database field.  Type in the following just as I
  2654.                       have it.
  2655.  
  2656.                                     45
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.  
  2663.      @ 2,4 SAY 'ENTER FIRST NAME' 
  2664.      @ 2,25 GET FIRST_NAME 
  2665.      @ 4,4 SAY 'ENTER LAST NAME' 
  2666.      @ 4,25 GET LAST_NAME 
  2667.  
  2668.      {Ctrl W}         This will save our format and  bring us  back to
  2669.                       the menu.
  2670.  
  2671.      {Alt 1}          This  will  bring  up  the  first menu, the Name
  2672.                       menu.  There is a chance that if you do not have
  2673.                       enough memory  left that you will have a problem
  2674.                       with this.
  2675.  
  2676.      6MAIL{Enter}     We choose the MAIL format file.
  2677.  
  2678.      {Esc}            This returns us to the previous menu.
  2679.  
  2680.      {Home}{Alt E}    First we use the special key to get to the start
  2681.                       of the  database.   Then we  use another special
  2682.                       key to invoke the Edit mode.  Notice  how we now
  2683.                       only  have  the  two  fields  and  they are on a
  2684.                       formatted screen.
  2685.  
  2686.      {Esc}8{Enter}    We go back into the Modify Format.
  2687.  
  2688.      {Page Down}{End}
  2689.      {End}{End}       Move to the end of the listing and  type in what
  2690.                       I have below.
  2691.  
  2692.  
  2693.      @ 6,4 SAY 'ENTER ADDRESS 1' 
  2694.      @ 6,25 GET ADDRESS1 
  2695.      @ 8,4 SAY 'ENTER ADDRESS 2' 
  2696.      @ 8,25 GET 'ADDRESS2'
  2697.      {Cntrl W} 
  2698.      {Alt E}          If you  have typed  just what  I put in you will
  2699.                       get the following error message:
  2700.  
  2701.           ERROR IN COMMAND
  2702.  
  2703.           Syntax error.
  2704.  
  2705.           @ 8,25 GET 'ADDRESS2'
  2706.  
  2707.           press any key to continue...
  2708.  
  2709.                      The problem in this case is  that be  have quotes
  2710.                      around the  field name.  I wanted you to see what
  2711.                      type of error message you would get if you made a
  2712.                      mistake in your coding.
  2713.  
  2714.  
  2715.                                     46
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721.      {any key}
  2722.      8{Enter}        Go  down  and  remove  the quotes from around the
  2723.                      ADDRESS2 FIELD on the GET command line.   then go
  2724.                      to the  end of the listing and continue with what
  2725.                      I have below.
  2726.  
  2727.      @ 10,4 SAY 'ENTER CITY/ST/ZIP' 
  2728.      @ 10,25 GET CITY 
  2729.      @ 10,48 GET STATE 
  2730.      @ 10,53 GET ZIP 
  2731.      @ 12,4 SAY 'ENTER PHONE'  
  2732.      @ 12,25 GET PHONE PICTURE '999-999-9999' 
  2733.      @ 14,4 SAY 'ENTER BIRTHDAY' 
  2734.      @ 14,25 GET BIRTH PICTURE '@D' 
  2735.      @ 16,4 SAY 'ENTER SALARY' 
  2736.      @ 16,25 GET SALARY VALID SALARY > 10000 .AND. SALARY < 100000 
  2737.      @ 18,4 SAY 'IS THIS A CUSTOMER' 
  2738.      @ 18,25 GET CUSTOMER  
  2739.       
  2740.                      A number of comments.   After  GET PHONE  we have
  2741.                      PICTURE '999-999-9999'.  This means that on input
  2742.                      numbers will be expected  and the  '-' characters
  2743.                      will be put in automatically.  After GET BIRTH we
  2744.                      have PICTURE  '@D'.   This will  format the input
  2745.                      screen to accept a date.  Lastly after GET SALARY
  2746.                      we have  VALID  SALARY  >  10000  .AND.  SALARY <
  2747.                      100000.    The  valid  clause allows you to check
  2748.                      that input meets specified criteria.
  2749.  
  2750.                      There is much more to setting up format files but
  2751.                      I will leave this to a good book on dBASE.
  2752.  
  2753.      {Ctrl W}
  2754.      {Alt A}         {Alt A}  is another special character you can use
  2755.                      to execute the append  command  from  anywhere in
  2756.                      the menu  system.   Go ahead  and input some more
  2757.                      records.   Try  to  put  in  some  salaries below
  2758.                      10,000 or over 100000.
  2759.  
  2760.      {Esc}
  2761.  
  2762.      Well that  is the  end of  our journey together.  I say this over
  2763.      and over in each  document  but  one  more  time  will  not hurt.
  2764.      Please write  and tell us how we could make this tutorial better.
  2765.      The experiences of someone who knew nothing or  very little about
  2766.      databases would  be very  helpful to us.  Where did you get lost?
  2767.      What was confusing?  Which parts did you  find good?   Answers to
  2768.      these questions can help us make a better product for you.
  2769.  
  2770.      Thank you.
  2771.  
  2772.  
  2773.  
  2774.                                     47
  2775.  
  2776.  
  2777.  
  2778.  
  2779.  
  2780.      **********************************************************
  2781.      * 
  2782.      * (c) COPYRIGHT 1987 I on I Computer Solutions, Inc.  
  2783.      *             All Rights Reserved 
  2784.      * 
  2785.      ********************************************************** 
  2786.  
  2787.  
  2788.      dBASE III and dBASE III PLUS are trademarks of Ashton-Tate.
  2789.      FoxBASE+ is a trademark of Fox Software.
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.                                     48
  2834.