home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / eb202.zip / PACK1.PRG / MANUAL.REP < prev    next >
Text File  |  1994-05-06  |  110KB  |  2,533 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                             EASY BASE USERS MANUAL
  7.                             ══════════════════════
  8.  
  9.                                   Contents
  10.                                   ────────
  11.  
  12.  
  13.  
  14.  
  15.               System Overview..............................   1
  16.  
  17.               Data Management Principles...................   2
  18.  
  19.               Form Design..................................   6
  20.  
  21.               Relationships and Lookups....................  11
  22.  
  23.               Data Entry...................................  15
  24.  
  25.               Procedures (Reporting).......................  20
  26.  
  27.               Procedures (Transactional)...................  36
  28.  
  29.               User Menus...................................  39
  30.  
  31.               System Requirenents and Limitations..........  43
  32.  
  33.               DOS Filename Convention......................  44
  34.  
  35.  
  36.  
  37.       Easy Base is Copyright (c) John Turnbull 1994 and is published by:-
  38.  
  39.       Easy Software
  40.       3 Brookside Court
  41.       Prestbury Road
  42.       Macclesfield
  43.       SK10 3BR
  44.       UK
  45. ................................................................................
  46.  
  47.  
  48.  
  49.  
  50.                                TERMINOLOGY
  51.                                ═══════════
  52.  
  53.      Field         The storage space for an individual data item.
  54.      ─────
  55.  
  56.      Record        A set of related data items.
  57.      ──────
  58.  
  59.      Form          The storage space for a set of records.
  60.      ────
  61.  
  62.      Procedure     A set of instructions which manipulate the data
  63.      ─────────     stored in forms.
  64.  
  65.      Relationship  A record in the relationships form recording
  66.      ────────────  a link between forms.
  67.  
  68. ................................................................................
  69.  
  70.                         EASY BASE SYSTEM OVERVIEW
  71.  
  72.        Easy Base is a complete rapid programming system for data
  73.        management. Virtually every data management problem can be
  74.        broken down into three areas. Creating disk files (referred to
  75.        as "Forms" in Easy Base) in which to store data, creating
  76.        procedures which manipulate that data and presenting those
  77.        forms and procedures in a logical menu system for use.
  78.  
  79.        In Easy Base you create the forms in which to store data in a
  80.        simple screen-painting environment which not only designs the
  81.        data file but at the same time provides a default data entry
  82.        screen for your data. As you place the "Fields" in which data
  83.        is to be stored you can use relational links ("Lookups") to
  84.        import data from other forms. Each field you create for data
  85.        storage is also treated as a deriveable "Cell" similar to a
  86.        spread sheet. You can make almost any calculation or derivation
  87.        within a field as, apart from all arithmetic, relational and
  88.        logical operators, Easy Base also provides a set of over fifty
  89.        functions covering everything from Modulo arithmetic to
  90.        spelling out dates. Once you have created your forms you can
  91.        use the default screen to enter and view your data using the
  92.        "Data Entry" system.
  93.  
  94.        Once you have data stored you will need to be able to
  95.        manipulate it and report on it. Easy Base provides a combined
  96.        transaction and reporting system ("Procedure Generator"). With
  97.        the procedure generator you can use the default screens you
  98.        have designed or create custom screens in which to gather input
  99.        either from the keyboard or from relational Lookups. You then
  100.        instruct Easy Base what to do with this information using a
  101.        simple "Basic" like programming language. If your procedure is
  102.        transactional you have commands to enter, modify or delete
  103.        records in any number of forms within a single procedure. If
  104.        your procedure is reporting then there are commands to group,
  105.        order and list data in almost every conceivable way.
  106.  
  107.        You now have all the "Parts" required to create a useful data
  108.        management program. All that remains is to tie your procedures
  109.        to a menu system so that other people can use your application
  110.        without having to know anything about Easy Base. Creating an
  111.        end user menu system in Easy base is as simple as filling in a
  112.        form with the text you wish to display and the procedure or
  113.        form you wish to run. You give at least one of your menus a
  114.        start up password. If you then restart Easy Base but sign on
  115.        with that password instead of your developers password then you
  116.        will be running your own custom designed program.
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.                                    - 1 -
  124. ................................................................................
  125.  
  126.                        DATA MANAGEMENT PRINCIPLES
  127.  
  128.        In Easy Base, creating forms and entering data is very easy.
  129.        You will be tempted to rush on and create programs for yourself
  130.        without reading the "Bumf". However, unless you are an
  131.        experienced data programmer, you should at least read this
  132.        section and the one on Relationships before embarking on any
  133.        serious project.
  134.  
  135.        The crux of data management is "Data Integrity" or "Data
  136.        Verification".  You might know that "A Smith", "Smith's Garage"
  137.        and "Smith and Son" are all the same customer of yours but your
  138.        computer definitely does not! If you have a small business you
  139.        might wish to use Easy Base to create invoices - you might be
  140.        tempted to start by creating an invoice form in which you enter
  141.        your customers name, work done and price. - DON'T - Start
  142.        instead by creating a form to hold each of your customers'
  143.        names, addresses, credit limit etc.  If you sell things then
  144.        create a form to hold each of your stock items with their name,
  145.        partno, price etc.  These are your "Core" data forms from
  146.        which you "Lookup" data for other purposes. Each of your "Core"
  147.        data forms has a "Unique" field which defines the record as an
  148.        entity. "Smith's Garage" will always be "Smith's Garage" and
  149.        the lookup function described later will not allow any other
  150.        representation to be entered.
  151.  
  152.        Although of less significance than "Data Integrity", the names
  153.        which you give to forms and fields are very important and worth
  154.        mentioning now. When you come to write "Lookup" derivations and
  155.        later, Procedural code you have to refer to your data by a
  156.        combination of its form and field names. Please give
  157.        considerable thought to the names you use. Each name should be
  158.        short but fully describe the form or field. The names of forms
  159.        should be plural and the names of fields singular. For example
  160.        - a form which is to hold details of your customers should be
  161.        called "Customers", the name field should be called "Name" and
  162.        the credit limit field should be called "Creditlimit" . When
  163.        you need to lookup data from this form the lookup function will
  164.        be written - Lookup(customers,name) and when you write
  165.        procedures the data will be referred to as customers.name ,
  166.        customers.creditlimit etc.  If you did not follow this naming
  167.        convention and called the form "F1" , the name field "customer"
  168.        and the credit limit field "Max cred" then writing procedure
  169.        code would be extremely frustrating.
  170.  
  171.        It is equally important to give the same name to fields which
  172.        hold the same data in different forms. If you already had a
  173.        form called "Employees" which had fields "Worksno", "Name",
  174.        "Address" and "Taxcode" and you then created a "Payslips" form
  175.        the fields which hold the employee's name and taxcode should
  176.        also be called "Name" and "Taxcode". This not only makes it
  177.        easier to remember field names but when you come to write
  178.  
  179.                                    - 2 -
  180. ................................................................................
  181.  
  182.        procedure code, data can be transferred between one form and
  183.        another with the command "Copy all from". This command only
  184.        transfers data between fields with the same name. If you have
  185.        given different names to the fields in the two forms you will
  186.        have to transfer each individual field separately.
  187.  
  188.        The fields which you create are of four general types - The
  189.        definition (unique) field, grouping fields, ordering fields and
  190.        descriptive fields.
  191.  
  192.        When you create your "Core" data forms it will be fairly
  193.        obvious which is the definition field. In the "Employees" form
  194.        "Worksno" defines the record. In a "Manufacturers" form "Name"
  195.        defines the record. As a general rule, each form should have a
  196.        definition field. There is an exception to this where a form is
  197.        used to store temopary lists (described later) but for the
  198.        moment you should expect to have a definition or "Unique" field
  199.        on each form to prevent duplicate entries. When you create
  200.        secondary forms which lookup data from your "Core" forms the
  201.        data which defines the record as an entity will not necessarily
  202.        be contained solely in one of the fields you wish to display.
  203.  
  204.        As an example - A magazine wholesaler has two "Core" forms, one
  205.        containing details of the magazines he supplies and one
  206.        containing customers details. He creates a form on which to
  207.        record orders from his customers. This "orders" form has three
  208.        fields, "Name"(for the customer), "Magazine" and "Quantity".
  209.        When a customer phones in an order for a particular magazine
  210.        the wholesaler will need to be warned if this particular
  211.        customer has already ordered this particular magazine but no
  212.        one field defines the record. In fact the record is defined as
  213.        unique by a combination of the two fields "Name" and "Magazine"
  214.        In this case, a fourth field should be added to the form in
  215.        which the two fields "Name" and "Magazine" are combined using
  216.        the "jointext" function. This field is then the "Unique" field
  217.        and no duplicate entries will be allowed.
  218.  
  219.        In many secondary forms the records definition will be even
  220.        less obvious but if you are to create data storage for flexible
  221.        reporting you should always attempt to create a suitable
  222.        "unique" field.
  223.  
  224.        For example :- An "Aircraft" form has a field "Manufacturer"
  225.        which is looked up from a "Manufacturers" form. It also has
  226.        fields for "Name" and "Mark". The definition of an aircraft is
  227.        what it is known as. If it has a name then it is known as a
  228.        combination of the manufacturer and the name (Supermarine
  229.        Spitfire) but if it does not have a name it is known as a
  230.        combination of the manufacturer and mark (English Electric P1b)
  231.        Even in these more complicated situations you can still create
  232.        a unique field to prevent duplicates. In the above example you
  233.        would create the unique field "Knownas" and derive it with the
  234.  
  235.                                    - 3 -
  236. ................................................................................
  237.  
  238.        formula - Jiontext(manufacturer,if(name = blank,mark,name))
  239.  
  240.        When you define a field as unique Easy Base automatically
  241.        indexes this field.
  242.  
  243.        The second type of field is a "Grouping" field. This is a field
  244.        which will be used in procedures to select subsets of records.
  245.        In the "Aircraft" form you might add a field "Type" which would
  246.        qualify each record as belonging to a group - "Fighter",
  247.        "Bomber", "Transport" etc. Grouping fields should also be
  248.        defined as indexed and should always be subject to data
  249.        integrity checking. Where the number of groups is small (17 or
  250.        less) Easy Base provides a quick method of data verification in
  251.        the "Choice" field type. If the number of groups is larger than
  252.        17 then you should create a "Core" form to hold the group names
  253.        and look them up into the secondary form.
  254.  
  255.        The third type of field is used for ordering data. In many
  256.        instances the order in which you wish to print or view data
  257.        will be that of the definition field or one of the grouping
  258.        fields but not always. In the "Aircraft" form you might wish to
  259.        list them by the dates they were first introduced or by the
  260.        total production runs. In order to do this you would have to
  261.        add fields for "Date" and "Production". You would later write
  262.        procedures to list the aircraft with "Date in order" or
  263.        "production in order". Ordering fields should also be indexed
  264.        but they need not necessarily be checked for data integrity.
  265.  
  266.        Fields which are not used for ordering or grouping are
  267.        descriptive and need not be indexed or integrity checked.
  268.  
  269.        One of the most common mistakes made by beginners to data
  270.        management is to create different forms for the same data.
  271.        With the "Aircraft" form above you might be tempted to save all
  272.        the military aircraft of World War 1. Later you might create a
  273.        second form for the aircraft of World War 2. This would be a
  274.        mistake. The data you are recording is "Aircraft". The era to
  275.        which they belong should simply be another "Grouping" field.
  276.        If having saved your data you were asked for a list of all
  277.        "Boeing" military aircraft showing which wars they were used in
  278.        then this could be achieved with one simple procedure if they
  279.        were in one form but would be rather more difficult if they
  280.        were in two.
  281.  
  282.        That example was fairly obvious but on many occasions it will
  283.        be easy to assume that two or more sets of data are separate
  284.        when in fact they are simply groups of the same.
  285.  
  286.        Should you decide to write your own accounting program (Which
  287.        is not as daunting a task as it might seem on the surface) You
  288.        might be tempted to create forms for a Sales Ledger, Nominal
  289.        Ledger and Customers Accounts. In fact the entries in the
  290.  
  291.                                    - 4 -
  292. ................................................................................
  293.  
  294.        Nominal Ledger and Customers Accounts are simply sub groups of
  295.        the entries in the Sales Ledger. Provided that you include
  296.        grouping fields for the customers account number and nominal
  297.        account name you can construct customers and nominal accounts
  298.        when required by extracting and totalling the sub sets. There
  299.        is no need to save them as separate data.
  300.  
  301.        The final problem you will encounter when deciding how to store
  302.        data is that of "Related Lists".  Consider the "Aircraft" form.
  303.        If you had a grouping for "Airliner" you might wish to record
  304.        all the airlines which operate each aircraft. You cannot just
  305.        add fields to the "Aircraft" form - One airliner might only be
  306.        operated by one airline and another might be operated by fifty.
  307.  
  308.        To store this data you need another form let's call it Userlist
  309.        with fields "Aircraft" , "Airline" and "Uni" which is the
  310.        unique field derived by joining the other two. The "Aircraft"
  311.        field is looked up from the "Aircraft" forms unique field
  312.        "Knownas" and the "Airline" field is looked up from the
  313.        "Airlines" form "Name" field which is also unique.
  314.  
  315.        In this form you enter one record for each combination of
  316.        aircraft and airline. When you come to report on your data you
  317.        can list single records from the main "Aircraft" form together
  318.        with all related records from the "Userlist" form.
  319.  
  320.        ...................PROCEDURE CODE.............
  321.        declare output fields
  322.           aircraft.knownas : Aircraft.production :aircraft.seats
  323.           userlist.airline
  324.        end
  325.        for aircraft with knownas = input.knownas
  326.           print formfields
  327.           for userlist with aircraft = aircraft.knownas
  328.              print userfields
  329.           next
  330.        next
  331.  
  332.        ...................FORMAT.....................
  333.  
  334.        .formfields
  335.                          { Aircraft.knownas field }
  336.  
  337.              Production { Prodn. field}    Seats  {Seats field }
  338.  
  339.                                Operated by :-
  340.  
  341.        .userfields
  342.                         { Userlist.Airline field  }
  343.        .end
  344.  
  345.  
  346.  
  347.                                    - 5 -
  348. ................................................................................
  349.  
  350.                                FORM DESIGN
  351.  
  352.        To start designing your forms select "Form Design" then "Design
  353.        new Form" from the menu system.  You are presented with a blank
  354.        form. Each form has four pages. To move from one page to the
  355.        next use the PgDn and PgUp keys. To move the cursor around on a
  356.        page use the arrow keys. Designing your form is a bit like
  357.        designing a form on paper. If you were to type on a paper form-
  358.  
  359.                 Name     .................
  360.                 Address  .................
  361.                          .................
  362.                          .................
  363.                          .................
  364.  
  365.        Then in Easy Base you type Name and Address as above but
  366.        instead of typing the dots you define fields for the data to be
  367.        entered to.
  368.  
  369.        Easy Base provides several facilities for "Polishing" the
  370.        presentation of your forms and these are covered first before
  371.        moving on to field definition.
  372.  
  373.        If you wish to enclose your text within boxes or in some
  374.        tabular format Press F3 and select "Line Drawing".  To draw
  375.        lines on the screen hold down the Alt key, The Ctrl key or both
  376.        and drive the cursor around with the arrow keys. The Alt key
  377.        draws double thin lines, the Ctrl key draws single thin lines
  378.        and a combination of both draws a thick single line. Press Esc
  379.        when you are finished line drawing to return to normal editing.
  380.  
  381.        If you wish to shade areas of the screen then again press F3
  382.        and select "Shading". Shading works much the same as Line
  383.        Drawing.
  384.  
  385.        If you require Greek, Mathematical or International characters
  386.        which cannot be typed directly from the keyboard then press F3
  387.        and select either "Greek and Mathematical" or "International" A
  388.        menu of all such characters provided by your PC will appear.
  389.        The one you select is printed to your form at the cursor
  390.        position.
  391.  
  392.        If you wish to use other than the default text colour then
  393.        press F4 after you have typed your text. In each Easy Base
  394.        screen colour set you can select one of two alternate text
  395.        colours or "Blink" - choose 1, 2 or 3 .  To change the colour
  396.        of your text or lines just hold down the shift key and drive
  397.        the cursor over the text you want to change with the arrow
  398.        keys. Press Esc when you have finished colouring your form.
  399.  
  400.        Text input in the form designer has "overtype" as the default.
  401.        If you wish to move text (or fields) to the right press the
  402.  
  403.                                    - 6 -
  404. ................................................................................
  405.  
  406.        Ins key. Insert mode is indicated by a block cursor and
  407.        Overtype by an underscore cursor. (This is the opposite to all
  408.        other editors in Easy Base as it keeps the underscore cursor as
  409.        the default)
  410.  
  411.        To insert a blank line above text or fields press F1. You
  412.        cannot scroll text or fields between pages in form design.
  413.  
  414.        If you need to move areas of your form then press F9, shade the
  415.        rectangle you wish to move and move it around with the arrow
  416.        keys. You can also transport the rectangle between pages with
  417.        the PgUp and PgDn keys.  F9 can also be used to erase areas of
  418.        the screen.
  419.  
  420.        When you are ready to define the data fields, position the
  421.        cursor where you want the field to start and press F10.
  422.        A window opens into which you enter all the attributes for the
  423.        field.
  424.  
  425.        The first attribute is "Field Name". If you have typed text to
  426.        the left of the field then Easy Base will have inserted this as
  427.        a default in the Field Name attribute. If it's not the name you
  428.        want just edit it. When you are happy with the field name press
  429.        return or the down arrow to the "Data Type" attribute. A menu
  430.        appears with the nine different field types. (The field types
  431.        are described fully in the Programmers Reference)
  432.  
  433.        When you have chosen a field type the cursor automatically
  434.        moves down to the "Field Length" attribute if you have chosen
  435.        "Text", "Integer", "Fixed Point" or "Floating Point" and to the
  436.        "Mandatory Entry" attribute if you have chosen one of the
  437.        others. Enter the field length you require in characters. If
  438.        you have chosen "Fixed Point" as the field type there are two
  439.        entries, one for the digits left of the decimal point and one
  440.        for the digits right of it. If your field is to hold a currency
  441.        value then the second entry will of course be 2.
  442.  
  443.        You must supply values for the first three field attributes.
  444.        The others all have preset defaults so you can save your field
  445.        at this point if none of the others have to be changed.
  446.  
  447.  
  448.        The next Field Attribute is "Mandatory Entry" which has a
  449.        default of "No".  You can set this to "Yes", "No" or "If". If
  450.        you set it to "Yes" then Easy Base will not allow a record to
  451.        be filed with this field left blank.  If you set it to "If"
  452.        then the "Code Snippet" editor opens up and you can enter the
  453.        condition under which an entry becomes mandatory. If you were
  454.        designing a "Payments" form and one of the fields "Paymethod"
  455.        could be filled with either "Cash" or "Cheque". Then the field
  456.        "ChequeNo" would have to be filled only if the "Paymethod"
  457.        field had "Cheque" entered in it.  To make an entry mandatory
  458.  
  459.                                    - 7 -
  460. ................................................................................
  461.  
  462.        in the "Chequeno" field only if "Paymethod" is "Cheque" enter -
  463.  
  464.        paymethod = "cheque" in the Code Snippet editor.
  465.  
  466.        When you use the Code Snippet editor for Mandatory Entry and
  467.        for User Entry, only the condition is entered :-
  468.  
  469.              total < 100
  470.              name = blank
  471.              length = blank or breadth = blank
  472.  
  473.        the "if" is assumed.
  474.  
  475.        If you set the "Mandatory Entry" attribute to either "Yes" or
  476.        "If", a window will open into which you can type the message
  477.        which you wish to be displayed should an attempt be made to
  478.        file a blank entry.  If you leave the message blank Easy Base
  479.        will supply the default message "This field must be filled !".
  480.  
  481.        The next attribute is "Unique". This can be set to "Yes" or
  482.        "no".  You can only have one unique field on a form. If you
  483.        have already defined a field as the unique field and you change
  484.        your mind and define another then Easy Base will automatically
  485.        cancel the unique attribute on the first field.  Indexing is
  486.        automatically set to "Yes" for the unique field.
  487.  
  488.        The next attribute is "Indexed". Select "Yes" or "No"
  489.        When you set "Index" to "yes",  Easy Base Creates a separate
  490.        "Index" file in which the contents of the field are kept in up
  491.        to date order. Index files are used by Easy Base in exactly the
  492.        same way that you would use an index in a book to find things
  493.        quickly.
  494.  
  495.        The next attribute is "User entry".  This has a default of
  496.        "Yes" but can be set to "No" or "If".  If you set this
  497.        attribute to "No" then the cursor will not visit the field
  498.        during record entry so the user cannot alter its contents. You
  499.        would normally set this to "No" if the contents are derived or
  500.        calculated from the values of other fields. You can set this
  501.        attribute to "If" if the value entered in another field makes
  502.        this one superfluous. For example, in the "Aircraft" form, if
  503.        you had a field "Passengers" and the type had been entered as
  504.        "Fighter" there would be no point in the cursor moving to the
  505.        "Passengers" field.  When the Code Snippet editor opens you
  506.        could type:-
  507.  
  508.              type = "Transport" or type = "Airliner"
  509.  
  510.        The next field attribute is "Display".   When the cursor
  511.        reaches this attribute a menu appears with the seven different
  512.        ways in which the field can be displayed.
  513.  
  514.  
  515.                                    - 8 -
  516. ................................................................................
  517.  
  518.        The field display attribute settings have the following
  519.        meaning.
  520.  
  521.        1.  FIELD
  522.  
  523.            The field's size is displayed as a block which shows
  524.            up against the screen background.
  525.  
  526.        2.  TEXT
  527.  
  528.            The field size does not show up against the screen
  529.            background and the contents are in the default text colour.
  530.  
  531.        3.  1ST ALT COL.
  532.  
  533.            As Text but with the contents in the first alternate colour
  534.  
  535.        4.  2ND ALT COL
  536.  
  537.            As Text but with contents in the second alternate colour.
  538.  
  539.        5.  BLINKING
  540.  
  541.            As Text but the contents blink.
  542.  
  543.        6.  INVISIBLE
  544.  
  545.            Neither the size nor the contents can be seen.
  546.            Invisible fields are used to hold compound index fields and
  547.            the results of intermediate calculations which the user
  548.            need not see.
  549.  
  550.        7.  CODEWORD FIELD
  551.  
  552.            The size of a codeword field shows against the screen
  553.            background but its contents are masked by stars.
  554.            Codeword fields are used to collect passwords for
  555.            restricted menus or procedures. An onlooker cannot see the
  556.            password which is being entered.
  557.  
  558.        The final field attribute is "Derived". If you set this to
  559.        "yes" then the Code Snippet editor opens and you can enter the
  560.        formula by which the fields contents are to be derived.
  561.  
  562.        In the Code Snippet editor you can enter almost any derivation
  563.        formula. Formulae consist of field names operators and
  564.        functions.
  565.  
  566.           price * markup
  567.           VATon(net,vatrate)
  568.           datetext(system date)
  569.           if(sex = male,"Mr","Ms")
  570.  
  571.                                    - 9 -
  572. ................................................................................
  573.  
  574.        All the operators and functions are fully described with
  575.        examples of how they are used in the Programmers Reference.
  576.  
  577.        If in the Code Snippet editor you cannot remember a field or
  578.        function name then Press F1 for the reminder lists.
  579.  
  580.        There is a cut and paste facility in the Code Snippet editor.
  581.        To mark text hold down the shift key and move the cursor with
  582.        the arrow keys. When you release the keys the "Cut" or "Copy"
  583.        choice will appear. To paste text, position the cursor at the
  584.        insertion point and press Shift + Ins.  Text which is cut or
  585.        copied from the derivation of one field can be pasted into the
  586.        derivation of any other field in any other form.
  587.  
  588.        When you have finished entering the field attributes press F2
  589.        to save the field. When you have defined all the fields press
  590.        F2 to save the form.
  591.  
  592.        There is one other facility in the Form Design editor.  If you
  593.        press F5 at any time you enter "Derivation Test Mode".  In
  594.        derivation test mode you can enter data to your fields and
  595.        check if your derivations work correctly.  Any fields which you
  596.        have defined as invisible are not hidden in test mode.  The
  597.        main advantage of test mode as opposed to testing in Record
  598.        Entry comes not when you are designing new forms but when you
  599.        wish to modify one after you have saved many records in it.  If
  600.        you add, delete or alter the length of a field then the entire
  601.        data file has to be reformatted and this takes time.  With
  602.        "Derivation Test Mode" you can ensure that the modifications
  603.        you have made are correct before reformatting.
  604.  
  605.        The only exception to test mode is if you have added a new
  606.        lookup function and you have not yet entered the relationship.
  607.        If you select test mode with a relationship missing you will
  608.        get an error message and be returned to Form Design.
  609.  
  610.        When you save your form Easy Base tests it in derivation test
  611.        mode before saving. If it cannot find a relationship you will
  612.        be given an error message and offered the choice to remain in
  613.        Form Design (which you would do should you know that the
  614.        relationship exists and you must therefore have mistyped a
  615.        lookup formula) or to save and exit anyway. (Which you would do
  616.        if the relationship had not yet been entered)
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.                                    - 10 -
  628. ................................................................................
  629.  
  630.                    RELATIONSHIPS AND THE LOOKUP FUNCTION
  631.  
  632.        In Easy Base the Lookup Function together with pre-recorded
  633.        relationship links provide two of the most important facilities
  634.        of a data management system.
  635.  
  636.            1. Reuse of previously entered data.
  637.            2. Verification of text data.
  638.  
  639.        Consider the situation where you have designed a form to hold
  640.        information about your business's customers. The form has an
  641.        "accountno" field which has been derived as "Sequence" and this
  642.        is therefore the "Unique" field on the form.  It also has
  643.        fields "Name" and "Address".  All your customers have now been
  644.        recorded in this form.  You now want to create an invoice form.
  645.        Each invoice issued will have to have a customer's name and
  646.        address entered on it.  All the names and addresses are already
  647.        filed in Easy Base so they do not have to by typed again.
  648.        Provided that Easy Base knows which customer's name and
  649.        address is required it can copy it automatically from the
  650.        "Customers" form to the "Invoice" form.
  651.  
  652.        The way in which Easy Base accomplishes this is exactly the
  653.        same as you would accomplish the task manually in a hand
  654.        written system. If you knew where to find the book in which
  655.        your customers names had been written and you knew the
  656.        customers account number then you could find the customers name
  657.        and address.
  658.  
  659.        The only slight difference for the computer is that while you
  660.        would consider it "Obvious" that the account number on the
  661.        invoice would be the same as the account number in the
  662.        addresses book your computer does not - You have to tell it.
  663.  
  664.        To tell Easy Base where to look and that the "accountno" is the
  665.        link, you enter a record in the "Relationships" form.
  666.  
  667.        When you select "Relationships" from the main menu you will see
  668.        five fields to be filled.  The first field is the name of the
  669.        form which data is to be copied to. In this case you will enter
  670.        "Invoices".  You will notice that easy base has displayed a
  671.        list of all your form names and that you must choose one.  You
  672.        cannot enter the name freehand.  This "internal" data
  673.        verification is the same as you will be doing for your own data
  674.        later.
  675.  
  676.        The second field is for the name of the form in which the data
  677.        can be found.  In this case select "Customers".
  678.  
  679.        The next two fields record which fields in the primary and
  680.        secondary form hold the "Linking" data. In this case select
  681.        "acountno" in both.
  682.  
  683.                                    - 11 -
  684. ................................................................................
  685.  
  686.        The final field is the name of the relationship record.  You
  687.        will notice that Easy Base has already entered a default name
  688.        of "Customers".  The relationship name can be anything you like
  689.        but as the "Lookup" function which you are about to use quotes
  690.        the relationship name as its first parameter and the field to
  691.        be copied as its second then Lookup(customers,name) has to be
  692.        more meaningful and easy to remember than any other name you
  693.        could give.
  694.  
  695.        When you have entered all the fields press F2 to save the
  696.        relationship, return to Form Design and load your "Invoice"
  697.        form.
  698.  
  699.        All that remains to do now is edit the field attributes of the
  700.        "Name" and "address" fields.  To edit a field you can either
  701.        press F10 with the cursor on the form background and select the
  702.        field to edit by name, or you can position the cursor within
  703.        the field you wish to edit and then press F10, in which case
  704.        the field attribute window will open automatically.  Position
  705.        the cursor in the "Name" field and press F10. Move the cursor
  706.        to the "Derivation" attribute and set it to yes. (you can move
  707.        the cursor from the "Name" attribute directly to the "Derived
  708.        attribute by pressing the up arrow)
  709.  
  710.        When the Code Snippet window opens type -
  711.  
  712.             Lookup(customers,name)
  713.  
  714.        and press F2.  If you had not already done so then set the
  715.        "User Entry" attribute to "No".
  716.  
  717.        Press F2 to save the new field attributes and then do the same
  718.        for the "Address" field, this time entering the derivation -
  719.  
  720.            Lookup(customers,address)
  721.  
  722.        To test that you have typed the lookups correctly press F5 for
  723.        Derivation Test Mode. Enter a customers account number in the
  724.        "Acountno" field and press the return key. If your formulae are
  725.        correct the customers name and address will appear in the
  726.        "Name" and "Address" fields.
  727.  
  728.        In this example you have performed two "Secondary" lookups.
  729.        Both the "Name" and "Address" fields were found using the
  730.        "accountno" link which you had to enter correctly in order
  731.        to find the other two fields.
  732.  
  733.        The real power of the Lookup function is only realized when you
  734.        perform "Primary" and "Secondary" lookups.  In a "Primary"
  735.        lookup the field whose value is to be looked up is also the
  736.        "Link".  It is "Primary" lookups which are used for data
  737.        integrity checking.
  738.  
  739.                                    - 12 -
  740. ................................................................................
  741.  
  742.        Consider the "Aircraft" and "Manufacturers" forms which were
  743.        discussed earlier.  Suppose that you want to lookup the
  744.        manufactures name and the name of his base airfield into the
  745.        "Aircraft" form.  The definition field in the "Manufacturers"
  746.        form is "Name" - There is no handy "accountno".  You are going
  747.        to have to enter a relationship between "Aircraft" and
  748.        "Manufacturers" linking the two fields "Manufacturer" in the
  749.        "Aircraft" form with "Name" in the "Manufacturers" form.
  750.  
  751.        Having done this you could derive the "Base" field in the
  752.        "Aircraft" form with - Lookup(manufacturers,base) - and it
  753.        would be looked up when you entered the manufacturers Name just
  754.        as in the invoice example.  But what of the "Manufacturers"
  755.        field itself.  Was the name you entered in the manufacturers
  756.        form "A.V.Roe", "A.V.Roe & Co." or "AVRO A/C Co.".
  757.  
  758.        Easy Base provides a simple solution to this problem.
  759.  
  760.        Having entered the relationship, return to Form design and
  761.        enter the lookup derivations. Derive the "Base" field with -
  762.  
  763.            Lookup(manufacturers,base)
  764.  
  765.        and the "Manufacturers" field with
  766.  
  767.            Lookup(manufacturers,name)
  768.  
  769.        This time, leave the "User Entry" attribute set to "Yes" in the
  770.        "Manufacturers" field.
  771.  
  772.        Press F5 for "Test mode".  When the cursor enters the
  773.        "Manufacturers" field type -  AV*  - and press return.
  774.  
  775.        Provided there is only one manufacturer whose name begins with
  776.        "AV" the Avro name will be looked up into the "Manufacturers"
  777.        field and its representation will always be exactly the same as
  778.        the original entry in the "Manufacturers" form.  If there are
  779.        several manufacturers whose names begin with "AV" then a menu
  780.        will appear listing all of them and you can choose the one you
  781.        want. As soon as you select the name the secondary lookup
  782.        "Base" will fill automatically.
  783.  
  784.        If you cannot remember the first letters of the name you want
  785.        to look up - say for example that you could only remember that
  786.        "Roe" was in the name - then type Roe* and press return.  If
  787.        any manufacturers names begin with "Roe" they will be displayed
  788.        first. If not Easy Base will fill the "Manufacturer" field with
  789.        the first name it finds with the letters roe in it.  If this is
  790.        not the one you want press F3.  Each time you press F3 Easy
  791.        Base will find the next name containing the letters until you
  792.        find the one you want.   As a final resort - if you really
  793.        can't remember what you are looking for - just enter an "*" on
  794.  
  795.                                    - 13 -
  796. ................................................................................
  797.  
  798.        its own and press return. Easy Base will then list all the
  799.        manufacturers names for you to choose from.
  800.  
  801.        There is no limit to the number of secondary lookups which can
  802.        be made from each primary and there is no limit to the number
  803.        of different forms you can look data up from.
  804.  
  805.        If you have many different forms which all look up data from
  806.        the "Customers" form then they can all use the same
  807.        relationship name "Customers" but if you have more than one
  808.        relationship between the same two forms then they must have
  809.        different names.
  810.  
  811.        If you had a "Stock" form with the unique field "Item" and
  812.        another field "Price" then you could add four fields to your
  813.        "Invoice" form - "Item", "Quantity" "Price" and "Total".
  814.  
  815.        You would enter a relationship "Stock" between "Invoice" and
  816.        "Stock" with the related fields being "Item" in both forms.
  817.  
  818.        In your invoice form you would derive :-
  819.  
  820.           Item as    Lookup(stock,item)
  821.           Price as   Lookup(stock,price)
  822.           Total as   quantity * price
  823.  
  824.        When you entered the "Item" field (primary lookup) the price
  825.        field would fill automatically and when you entered the
  826.        "Quantity" the "Total" field would be calculated.
  827.  
  828.        However, if you now add four more fields "Item2", "Price2",
  829.        "Quantity2" and "Total2" you will need another relationship
  830.        between "Invoice" and "Stock" this time linking "Item2" in the
  831.        "Invoice file" with "Item" in the stock file and you cannot now
  832.        use the default name "Stock" for the relationship.
  833.  
  834.        Although you can give your additional relationship any name you
  835.        like, the best name will be "Stock2".
  836.  
  837.        Please note that this example is used purely to show the use of
  838.        multiple relationships between the same two forms.  If you are
  839.        intending to write an invoicing system then unless you know
  840.        that there will only be a limited number of items on each
  841.        invoice this is not a practical way to tackle the problem.
  842.  
  843.        In a flexible invoicing system each item and quantity is
  844.        entered via a procedure to a temporary list form whose contents
  845.        are then printed to the invoice.
  846.  
  847.  
  848.  
  849.  
  850.  
  851.                                    - 14 -
  852. ................................................................................
  853.  
  854.                                  DATA ENTRY
  855.  
  856.        As soon as you have designed forms you can enter and view data
  857.        directly using the default screen you created.  To enter data
  858.        to a form select "Data Entry" from the main menu and choose the
  859.        form you wish to use.
  860.  
  861.        Your default entry screen will appear with the cursor in the
  862.        top left field. The top line of the screen shows the name and
  863.        page number of the form you are using together with the system
  864.        date and time. Line 2 shows the number of the record you are
  865.        creating or editing on the left hand side. It is also the line
  866.        on which any error messages are passed. The bottom line lists
  867.        the most used function keys and is also the line on which help
  868.        prompts are displayed.
  869.  
  870.        To move the cursor around between fields you can use all of the
  871.        cursor control keys which work as follows:-
  872.  
  873.        The Return key moves from field to field in the order top left
  874.        to bottom right unless you have overridden this in form design
  875.        by deriving fields with "Goto (fieldname) Next".
  876.  
  877.        The Tab key moves the cursor from field to field in the order
  878.        bottom right to top left (reverse of Return).
  879.  
  880.        The arrow keys move the cursor in the direction indicated.
  881.  
  882.        The Home Key moves the cursor to the beginning of the current
  883.        field if it is not already there and to the first field on the
  884.        page if it is.
  885.  
  886.        The End Key moves the cursor to the end of text if it is in a
  887.        text field and to the last field on the page if it is not.
  888.  
  889.        The PgUp and PgDn Keys move between pages if your form has more
  890.        than one.
  891.  
  892.        When you have entered the data for your first record press F2
  893.        to save it to disk. The screen will clear, the message "Record
  894.        1 has been added" will appear briefly on line two and you will
  895.        be ready to enter the next record.
  896.  
  897.        If some of your fields are primary lookups then you use them
  898.        exactly the same as was described for "Derivation Test Mode" by
  899.        entering part of the text followed by a star and pressing the
  900.        Return Key.
  901.  
  902.        Once you have saved a few records to disk you may wish to view
  903.        or edit them. You can bring previously entered records back to
  904.        the screen for editing in several ways.  From record creation
  905.        the F5 Key brings up the first record and subsequent presses
  906.  
  907.                                    - 15 -
  908. ................................................................................
  909.  
  910.        bring up the next record. Similarly, from record creation the
  911.        F4 Key brings up the last record and subsequent presses bring
  912.        up the previous record.
  913.  
  914.        Once you have entered several records this process becomes
  915.        impracticable and you "search" for the record you wish to view
  916.        or edit.  Position the cursor in any field and type part of the
  917.        field contents you wish to search for followed by a star and
  918.        press F3.
  919.  
  920.        Searching for records within a form is a similar process to
  921.        looking up data except that you press the F3 rather than the
  922.        Return Key to initiate the process. If the field in which you
  923.        are searching is indexed and more than one record matches the
  924.        data you have entered then Easy Base will make a list of all
  925.        the field contents which match for you to choose from.  If the
  926.        field is not indexed then Easy Base will bring up the first
  927.        record it finds a match in. If this is not the record you want
  928.        then press F3 again. Easy Base will find another match on each
  929.        successive press of the F3 key until you find the record you
  930.        want. As with lookups, Easy Base will search for "Part Matches"
  931.        after it has exhausted all the records where the entered data
  932.        matches the beginning of the field and if you enter a star on
  933.        its own and press F3, Easy Base will list all the field
  934.        contents for you to choose from.
  935.  
  936.        When you have brought a previously entered record back to the
  937.        screen you will notice that line 2 now displays "Editing Record
  938.        x of y " rather than "Creating New Record x ".  Easy Base
  939.        automatically changes from "Create" to "Edit" mode when you
  940.        view a record.  The changes which you make on screen are not
  941.        entered to the record on disk until you press F2.
  942.  
  943.        To clear the contents of the field in which the cursor lies
  944.        rather than delete each character press F6. To return to
  945.        "Create" mode press F6 twice.
  946.  
  947.        Not all of the active function keys are listed on the prompt
  948.        line. To see a full menu of the function key uses press F1 for
  949.        the Function Key Menu.  The following is a summary of the
  950.        function key usage in Data Entry:-
  951.  
  952.        F1
  953.  
  954.        The F1 Key brings up the function key Menu.
  955.  
  956.        F2
  957.  
  958.        The F2 Key writes a new record from "Create" and updates the
  959.        record on screen from "Edit" mode.
  960.  
  961.  
  962.  
  963.                                    - 16 -
  964. ................................................................................
  965.  
  966.        F3
  967.  
  968.        The F3 key initiates searches for previously entered records
  969.        based on the data entered in the current field.
  970.  
  971.        F4
  972.  
  973.        The F4 key moves to the previous record when in "Edit" mode and
  974.        to the last record from "Create" mode.
  975.  
  976.        F5
  977.  
  978.        The F5 Key Moves to the next record when in "Edit" mode and to
  979.        the first record from "Create" mode.
  980.  
  981.        F6
  982.  
  983.        The F6 key clears the current field on the first press and
  984.        returns you to "Create" mode on the second press.
  985.  
  986.        F7
  987.  
  988.        The F7 key deletes the record currently on screen in "Edit"
  989.        mode.  When you delete a record with the F7 key it is not
  990.        actually erased from the disk. It is simply "Flagged" for
  991.        deletion at the next "Pack" operation. If you delete a record
  992.        accidentally you can reinstate it any time before the form is
  993.        next packed.
  994.  
  995.        F8
  996.  
  997.        The F8 key creates a new record by copying the record currently
  998.        on screen. If a new record you wish to create contains similar
  999.        data to one already entered then you can find the previous
  1000.        entry, change the unique field and copy it with F8 rather than
  1001.        type it all again.
  1002.  
  1003.        F9
  1004.  
  1005.        If you know the number of the record you wish to view or edit
  1006.        you can press F9 and enter the record number. Easy Base will
  1007.        then bring the record whose number you have entered to the
  1008.        screen.
  1009.  
  1010.        F10
  1011.  
  1012.        When you press the F10 key Easy Base searches for records which
  1013.        are "Flagged" for deletion.  When it finds one it will bring it
  1014.        to the screen. You can reinstate a deleted record by pressing
  1015.        F2 while it is on screen. The F5 key searches for the next
  1016.        deleted record and the Escape key returns you to "Live
  1017.        Records".
  1018.  
  1019.                                    - 17 -
  1020. ................................................................................
  1021.  
  1022.        F11
  1023.  
  1024.        If you have been viewing records and you wish to return to one
  1025.        which you had on screen earlier then press F11 and Easy Base
  1026.        will back step through the records you have viewed.
  1027.  
  1028.        F12
  1029.  
  1030.        The F12 key brings up the form's "Options". There are four
  1031.        options in Data Entry.
  1032.  
  1033.           1. Clear screen on Adding Record.             (Default Yes)
  1034.           2. Confirmation Required to delete Records.   (Default Yes)
  1035.           3. Confirmation Required to abandon Edits     (Default No)
  1036.           4. Clear Field on Editing                     (Default No)
  1037.  
  1038.        If you change "Clear Screen on adding Record" to "No" then,
  1039.        when you press F2 to file a new record, the data which is
  1040.        written to disk remains on screen ready for the next new
  1041.        record. This is useful if you are entering several records and
  1042.        many of the fields in each record contain the same data. You
  1043.        only have to overwrite the fields which are different each
  1044.        time.
  1045.  
  1046.        If you have many records to delete then set option 2 to "No"
  1047.        and you will be able to delete them without having to confirm
  1048.        each one.
  1049.  
  1050.        If you set option 3 to "Yes" then Easy Base will ask you to
  1051.        confirm that you wish to leave a record which you have edited
  1052.        but not updated to disk.
  1053.  
  1054.        If you set option 4 to "Yes" then Easy Base will clear the
  1055.        old contents of any field you start to edit.  This is most
  1056.        useful when used in conjunction with option 1. You can file a
  1057.        record, retain the contents for the next record and when you
  1058.        edit the fields which are different you do not have to first
  1059.        delete the data in them.
  1060.  
  1061.        The options you set for any given form remain with it until
  1062.        changed. They do not revert to the defaults when your computer
  1063.        is turned off and each form can have different option settings.
  1064.  
  1065.        Ctrl + E
  1066.  
  1067.        If you press the "E" key while holding down the Ctrl key you
  1068.        will get the extended "Greek" and "International" characters
  1069.        menu which was discussed in form design.
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.                                    - 18 -
  1076. ................................................................................
  1077.  
  1078.        Ctrl + S
  1079.  
  1080.        If you press The "S" key while holding down the Ctrl key you
  1081.        start the Spell-checker.  The Spell-checker will check the
  1082.        current field. If it finds a word not included in the Easy base
  1083.        dictionary it will offer you the choices to leave the word and
  1084.        continue, add the word to the dictionary, or choose one of the
  1085.        suggestions for replacement.
  1086.  
  1087.        The Spell checker does not automatically move from field to
  1088.        field but once you have started it, it remains active and will
  1089.        immediately check the next text field you move the cursor to.
  1090.  
  1091.        The Spell-checker is cancelled if you press the Escape key or
  1092.        if you press the F2 key to update the record.
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.                                    - 19 -
  1132. ................................................................................
  1133.  
  1134.                           PROCEDURES (REPORTING)
  1135.  
  1136.        The Easy Base procedure generator is the means by which you
  1137.        manipulate and report on your data.
  1138.  
  1139.        Each procedure has at least one part, the procedure code.  The
  1140.        procedure code contains the instructions you write to tell Easy
  1141.        Base what you want done.
  1142.  
  1143.        If your procedure has an "output", in other words your
  1144.        instructions tell Easy Base to send data to the screen or to
  1145.        the printer, then the procedure must also have an Output
  1146.        Format. The Output Format is where you show Easy Base how you
  1147.        want the data you are about to "output" arranged on the screen
  1148.        or page.
  1149.  
  1150.        If what your procedure is to do depends on variables, ie it
  1151.        requires information from the operator or from Looked up data
  1152.        from one or more of your forms then it also requires an "Input
  1153.        Screen".  The Input Screen is where you gather the variable
  1154.        information that your procedure needs in order to carry out its
  1155.        task.
  1156.  
  1157.        Select "procedures" from the main menu and have a look at the
  1158.        items on the procedures menu.
  1159.  
  1160.        You will notice that the menu has pre-selected item 2 "Load
  1161.        Existing Procedure". Other than your first procedure this is
  1162.        the most useful starting point.  Item 1, "Create New Procedure"
  1163.        is only required if you wish to start a new procedure after you
  1164.        have another one loaded. The three parts to a procedure
  1165.        mentioned above are created and edited at items 3,4 and 5.
  1166.  
  1167.        Procedures, like forms, are saved to disk and can be re-used
  1168.        repeatedly. Item 6 runs the current procedure and item 7 saves
  1169.        it to disk.
  1170.  
  1171.        Item 8 deletes procedures which are no longer required and Item
  1172.        9 copies an existing procedure. Often you will require a
  1173.        procedure which is similar to one you have already created. It
  1174.        is much quicker to copy the first procedure and then edit it
  1175.        than to start a new procedure from scratch.
  1176.  
  1177.        Item 10 recalls the last output from a procedure to the screen.
  1178.        If you need to see the output from a procedure but it is not
  1179.        imperative that you have the most up to date information,
  1180.        (close of business / month end figures Etc) then it is much
  1181.        quicker to view the last output than to re-run the procedure.
  1182.  
  1183.        Finally, a small window just below the menu shows the name of
  1184.        the currently loaded procedure. In this case it is "Untitled".
  1185.  
  1186.  
  1187.                                    - 20 -
  1188. ................................................................................
  1189.  
  1190.        If you have not already done so, read the descriptions of the
  1191.        Declare, For..Next, If..Then, Print and Printer Control
  1192.        commands in the Programmers Reference now. These are the basis
  1193.        of all "reporting" procedures and should be thoroughly
  1194.        understood. If you are a programming beginner then some of the
  1195.        examples in the For..Next section may seem a bit advanced -
  1196.        Just ignore them - for the moment it is only important that you
  1197.        understand the principle of the loop and the qualifications
  1198.        that can be applied to it.
  1199.  
  1200.        Now select item 4 to write your first Procedure Code.
  1201.        The next few pages will describe simple reporting procedures
  1202.        based on the "Aircraft" form. To write like procedures for the
  1203.        forms you have designed all you have to do is substitute your
  1204.        form and field names.
  1205.  
  1206.        Before you start, have a look at the function key list on the
  1207.        bottom line. F2 saves your code and checks it. If you press the
  1208.        Escape key your code is still saved but the checking routine is
  1209.        bypassed. If you have written code and find that it is not
  1210.        passed on F2 because, for example, one of your form fields
  1211.        needs to be indexed, then you can still save the code you have
  1212.        written while you modify the form.
  1213.  
  1214.        F3 and F4 provide search and replace facilities similar to a
  1215.        word processor.
  1216.  
  1217.        There is a cut and paste system.  To mark code for cutting or
  1218.        copying hold down the Shift key and shade the code with the
  1219.        arrow keys.  As soon as you release the keys a menu will pop up
  1220.        with three options - Cut, Copy or Indent. The cut and copy
  1221.        options work exactly the same as in the Code Snippet editor
  1222.        with Shift + Ins used to paste the text. If you select "Indent"
  1223.        then you can indent all the selected lines at once with the
  1224.        left and right arrow keys.
  1225.  
  1226.        If you want to print out your code then press F10.
  1227.  
  1228.        The F1 key, labelled "Help" is the key you use when you can't
  1229.        remember something.  It has all the names of your forms, the
  1230.        names of the fields in each form and the names of all Commands,
  1231.        functions, and System values.  If Easy Base recognizes the
  1232.        context of your procedure when you press F1 then it will list
  1233.        the names you need (Formnames, fieldnames or Commands). If not
  1234.        a menu will appear from which you can pick which you need.
  1235.  
  1236.        With the cursor at the start of the top line on your blank
  1237.        procedure screen press F1.
  1238.  
  1239.        The "Commands" reminder list appears on the right hand side of
  1240.        the screen.  The command you want is the first one , "Declare
  1241.        Output Fields" but before selecting it have a look at how to
  1242.  
  1243.                                    - 21 -
  1244. ................................................................................
  1245.  
  1246.        select from the reminder lists. There are over fifty commands
  1247.        on this list but only the first seventeen are shown. You can
  1248.        scroll though them with the arrow keys but you can also use the
  1249.        inbuilt alphabetic search facility. If you type "o" then the
  1250.        highlight bar will move directly to the "Odd Page Print"
  1251.        command.
  1252.  
  1253.        Take the highlight bar back to the "Declare Output Fields"
  1254.        command either by scrolling or by pressing the Home key and
  1255.        press return.  The command will be inserted on the first line,
  1256.        the cursor will move to the second line and the "Forms"
  1257.        reminder list will appear.  Select the form which you wish to
  1258.        report on. In my example case this will be "Aircraft".
  1259.        "Aircraft." is inserted on the second line and the "fields"
  1260.        reminder list appears. I select "Knownas".  I also wish to list
  1261.        the aircraft's mark and type so I write.
  1262.  
  1263.        Declare output fields
  1264.           Aircraft.knownas : Aircraft.mark : Aircraft.type
  1265.        end
  1266.  
  1267.        Declare the fields you wish to list either by typing them
  1268.        freehand or by pressing F1 for reminders.
  1269.  
  1270.        Now complete your procedure code:-
  1271.  
  1272.        Declare Output fields
  1273.           Aircraft.knownas : Aircraft.mark : Aircraft.type
  1274.        end
  1275.        for Aircraft
  1276.           Print list items
  1277.        next
  1278.  
  1279.        and press F2 to check and save the code.
  1280.  
  1281.        If you have typed everything correctly you will be returned to
  1282.        the Procedures menu.  If you have misspelled something then the
  1283.        line with the error will be highlighted and you will get an
  1284.        error message. Correct the error and press F2 again.
  1285.  
  1286.        Easy Base now knows that it is to list the three fields
  1287.        Knownas, Mark and Type from all the records in the "Aircraft"
  1288.        form.  It does not know how they are to be arranged or whether
  1289.        they are to be printed or just shown on screen. This
  1290.        information must now be recorded on the procedures "Output
  1291.        Format".
  1292.  
  1293.        Select item 5, "Output Format", from the procedures menu and
  1294.        have a look at the screen. As usual the bottom line shows the
  1295.        function key usage. To insert a blank line you use F1 as in
  1296.        form design. F2 saves the format and the Escape Key abandons
  1297.        it. F3 gives you a line drawing facility similar to that in
  1298.  
  1299.                                    - 22 -
  1300. ................................................................................
  1301.  
  1302.        form design and Ctrl + "E" brings up the Greek and
  1303.        International characters menu.  The F10 Key is used to place
  1304.        your output fields.
  1305.  
  1306.        The upper status line shows the paper size you have selected at
  1307.        the left hand edge. If you scroll to the right it also shows
  1308.        where the right hand edge of your paper will be at the three
  1309.        different print sizes 10, 12, and 17 characters per inch.
  1310.  
  1311.        On the right hand side of the screen a small menu will have
  1312.        appeared offering you a choice of Format Section names. You do
  1313.        not have to use one of these they are just to save you time.
  1314.        For the moment select "List Items" from this menu.
  1315.  
  1316.        .List items  will appear on the first line and the cursor will
  1317.        move to the second.  For a first procedure we will simply list
  1318.        the fields required in columns. To do this move the cursor in
  1319.        along the second line to leave a reasonable margin and press
  1320.        F10 to place the first field.  A menu appears listing the three
  1321.        fields which were declared in the procedure's code. I select
  1322.        "Aircraft.knownas".  As soon as The field has been selected a
  1323.        window opens showing the default type and length of the field.
  1324.        You can change these defaults if you wish the printed length or
  1325.        type(for numeric fields) to be different in the report to what
  1326.        it is in the form. This window also presents an extra attribute
  1327.        marked "Trim Trailing Spaces" which defaults to "No". If you
  1328.        set this to "Yes" then any blanks at the beginning or end of
  1329.        the fields contents will not be printed at run time. This
  1330.        facility is used mainly for inserting numbers or names into
  1331.        form letter text.
  1332.  
  1333.        Press F2 to accept the defaults. The area which the field will
  1334.        occupy is shown on screen. Now move the cursor to the right and
  1335.        place the other two fields. Finally, press the return key to
  1336.        take the cursor to a new line and type a full stop ".".  The
  1337.        section names menu appears again.  This time select "End".
  1338.  
  1339.        The format screen now looks like this.
  1340.  
  1341.        .List Items
  1342.             ██████████████    ████████████   ████████████
  1343.        .End
  1344.  
  1345.        Press F2 to save the format. When you do, a new menu will pop
  1346.        up with four choices for the output destination. The exact
  1347.        meanings of these selections will be discussed shortly.  For
  1348.        the moment select "Output to Screen". When the Procedures menu
  1349.        appears select item 7 and save your procedure to disk.
  1350.  
  1351.        Now select item 6 and run the procedure.
  1352.  
  1353.        The fields from each record of the "Aircraft" form are listed
  1354.  
  1355.                                    - 23 -
  1356. ................................................................................
  1357.  
  1358.        down the screen. When the list reaches the bottom line the
  1359.        screen starts to scroll.  When all records have been listed the
  1360.        screen returns to the start of the list from where you can
  1361.        browse the report. If the list is long you can pause the output
  1362.        by pressing the return key while it is still running. Once the
  1363.        report is complete you can browse through it using the PgUp,
  1364.        PgDn and arrow keys.  You can also use the text search facility
  1365.        at F3.
  1366.  
  1367.        When you have finished reading the report press Escape to
  1368.        return to the procedures menu.  You can browse the report again
  1369.        at any time by selecting item 10 (Recall Last Output). Try it
  1370.        now.  While browsing a report you can also print it out by
  1371.        pressing F10.  If you press F10 to print a report from browse
  1372.        mode you invoke a low level print driver which prints the
  1373.        report at 10 CPI, 6 LPI in draft mode. Other font sizes and
  1374.        effects such as Bold and Underline are only available when you
  1375.        direct the report output to the printer at run time.
  1376.  
  1377.        To try printer effects select "Edit Procedure Code" and change
  1378.        The code to:-
  1379.  
  1380.        Declare output fields
  1381.           Aircraft.knownas : Aircraft.mark : Aircraft.type
  1382.        end
  1383.        Bold on
  1384.        12 CPI
  1385.        for aircraft
  1386.           print list items
  1387.        next
  1388.  
  1389.        Save the new code and select "Edit Output Format". There is
  1390.        nothing to change in the format itself but when you press F2 to
  1391.        save it, this time choose "Choose at Run time" for the output
  1392.        destination.
  1393.  
  1394.        When you now select "Run Procedure", the computer will beep and
  1395.        you will be asked whether the output is to be to the screen or
  1396.        printer. Choose printer and easy base will print your report in
  1397.        bold at 12 characters to the inch. (Assuming you have installed
  1398.        the correct printer driver from the utilities menu)
  1399.  
  1400.        You will notice that while Easy Base was printing your report
  1401.        it also output it to the screen but on completion it returned
  1402.        you to the procedures menu without invoking Browse mode.
  1403.  
  1404.        The output destinations which you choose when saving the output
  1405.        format are not "Either or" choices.  Irrelevant of your choice
  1406.        the output is always sent to both the screen and the disk file.
  1407.        It is the disk file that you browse when you select "Recall
  1408.        Last Output".  The differences between the choices are that
  1409.        only an output to the screen invokes Browse mode on completion
  1410.  
  1411.                                    - 24 -
  1412. ................................................................................
  1413.  
  1414.        and only an output to printer prints the report. Output to disk
  1415.        is only selected if you want to update reports from a Batch
  1416.        Execute menu.
  1417.  
  1418.        Now let's try something a bit more interesting. So far the
  1419.        report simply lists the aircraft in the order in which the
  1420.        records were filed.  To list them in alphabetic order, edit the
  1421.        procedure code and change the "For" line to:-
  1422.  
  1423.        for aircraft with knownas in order
  1424.  
  1425.        Save the code.  Easy Base can only list in order if the field
  1426.        you wish the order to be done by is indexed.  If the field you
  1427.        have chosen is not indexed you will get an error message.  If
  1428.        this happens, save the code by pressing the Escape Key - Save
  1429.        the procedure at item 7 then return to form design.  Load your
  1430.        form - edit the attributes for the field changing Indexed to
  1431.        "Yes".
  1432.  
  1433.        You can now reload your procedure and run it. This time the
  1434.        aircraft names will be in alphabetic order.
  1435.  
  1436.        Because a procedure has up to three parts it may not at this
  1437.        stage be obvious how Easy Base is handling the "Saving" or
  1438.        "Abandoning" of separate parts.  Here is a quick explanation.
  1439.        If you escape from either the output format or later the input
  1440.        screen and choose to "abandon" it you are abandoning it in the
  1441.        version of the report you are editing only. If you escape from
  1442.        the procedures menu and choose to "abandon" the procedure then,
  1443.        if it is a new "Untitled" procedure it is lost but if it is a
  1444.        procedure which you have loaded for editing then it is only the
  1445.        edits which are abandoned - The original procedure remains
  1446.        unchanged on disk. A procedure which you have loaded for
  1447.        editing is only changed on disk when you save it with item
  1448.        seven from the procedures menu.  At any time during the editing
  1449.        of a procedure you can throw away all your edits and return to
  1450.        the original version by reloading it from disk and replying
  1451.        "No" when you are asked if you wish to save the currently
  1452.        loaded version.
  1453.  
  1454.        Suppose now that we wished to list the aircraft in groups by
  1455.        type - all the bombers together - all the fighters together
  1456.        Etc.
  1457.  
  1458.        To do this, edit the procedure code again and change the "For"
  1459.        line to: -
  1460.  
  1461.        for aircraft with type in order
  1462.  
  1463.        This time, when the report is run, all the airliners come first
  1464.        followed by the bombers etc. but the group field "Airliner" ,
  1465.        "Bomber" etc. is listed on each line and it would be much
  1466.  
  1467.                                    - 25 -
  1468. ................................................................................
  1469.  
  1470.        neater if it could be separated or printed in Bold or
  1471.        underline.
  1472.  
  1473.        Edit the code again, this time to:-
  1474.  
  1475.        Declare output fields
  1476.           Aircraft.knownas : Aircraft.mark : Aircraft.type
  1477.        end
  1478.        declare variables
  1479.          lasttype as text
  1480.        end
  1481.        for Aircraft with type in order
  1482.           if aircraft.type <> lasttype then print group header
  1483.           lasttype = aircraft.type
  1484.           print list items
  1485.        next
  1486.  
  1487.        In this code we have introduced a text variable "lasttype".
  1488.        During the "For" loop the list items will be printed on each
  1489.        iteration but the group header will only be printed when the
  1490.        type changes
  1491.  
  1492.        Now edit the output format to:-
  1493.  
  1494.        .group header
  1495.  
  1496.            ████████████████
  1497.        .list items
  1498.                    ███████████████     ██████████████
  1499.        .end
  1500.  
  1501.        The group header starts with a blank line which will separate
  1502.        the groups. It contains only the "Type" field.  The list items
  1503.        section contains the "Knownas" and mark fields.
  1504.  
  1505.        When you run this report the output will be:-
  1506.  
  1507.           Airliners
  1508.                   Boeing 707
  1509.                   Dehaviland Comet     Mk4
  1510.                   Boeing Jumbo Jet     747
  1511.  
  1512.           Bombers
  1513.                   Boeing B52
  1514.                   Avro Vulcan
  1515.                   Avro lancaster       2
  1516.  
  1517.  
  1518.        If you want the group header to be in bold or underline then
  1519.        all you have to do is insert the on and off commands before and
  1520.        after the "Print group header" command using the block If then
  1521.        construction.
  1522.  
  1523.                                    - 26 -
  1524. ................................................................................
  1525.  
  1526.        Declare output fields
  1527.           Aircraft.knownas : Aircraft.type : Aircraft.mark
  1528.        end
  1529.        declare variables
  1530.           lasttype as text
  1531.        end
  1532.        for Aircraft with type in order
  1533.           if aircraft.type <> lasttype then
  1534.              bold on : underline on
  1535.              print group header
  1536.              bold off : underline off
  1537.           end if
  1538.           print list items
  1539.        next
  1540.  
  1541.        As a beginner, you are probably wondering about the reason for
  1542.        the indentations after the "for" and "if" lines. The code will
  1543.        work perfectly well without them. When you come to write more
  1544.        advanced procedures you will have many For loops, Do Loops and
  1545.        If conditions interwoven with each other.  If each has its own
  1546.        indentation then you will be able to see at a glance which
  1547.        commands occur within which loops and conditions and your code
  1548.        will be very easy to read and edit.
  1549.  
  1550.        Going back to the "Aircraft" listing procedure, we now have
  1551.        each group separated but the aircraft names themselves are no
  1552.        longer in alphabetic order.  This is because we changed index
  1553.        files when we selected "With Type in order".  It is now the
  1554.        "Type" groupings which are in alphabetic order.  Suppose that
  1555.        we want to keep this grouping but still list the aircraft in
  1556.        each group with their names in order.  Neither of the index
  1557.        files on the "Knownas" or "Type" fields can produce this order.
  1558.        We need a combined or "Compound" index on both fields
  1559.  
  1560.        To construct this index, save the present procedure and return
  1561.        to form design.  Load the "Aircraft" form and add a new field
  1562.        anywhere on it. Assuming the length of the "Knownas" field as
  1563.        20 and the length of the "Type" field as 15 the new fields
  1564.        attributes are:-
  1565.  
  1566.        Name         Typename
  1567.        Type         Text
  1568.        Length       35
  1569.        Mandatory    No
  1570.        Unique       No
  1571.        Indexed      Yes
  1572.        User Entry   No
  1573.        Display      Invisible
  1574.        Derived      Yes
  1575.  
  1576.        The derivation formula is:-
  1577.        Jointext(spacepad(category,15),knownas)
  1578.  
  1579.                                    - 27 -
  1580. ................................................................................
  1581.  
  1582.        Test that the derivation formula is correct by pressing F5 for
  1583.        test mode. When you type a name into the "Knownas" field and a
  1584.        type in the "Type" field the new field should derive as a
  1585.        combination of the two.
  1586.  
  1587.        Escape from test mode and press F2 to save the form. Easy Base
  1588.        will first re-format the data file to incorporate the new field
  1589.        and then write the new index file.
  1590.  
  1591.        When this is complete, return to the procedure and edit the
  1592.        "For line of the code from:-
  1593.  
  1594.        For aircraft with type in order
  1595.  
  1596.        to
  1597.  
  1598.        For Aircraft with typename in order
  1599.  
  1600.        No change is necessary to the output format.  The output will
  1601.        be laid out as before but the names in each group will be in
  1602.        alphabetic order.
  1603.  
  1604.        To "Polish" the "Aircraft" report it would be nice if it had a
  1605.        heading. We would also like to prevent the list from running
  1606.        off the end of the page when printed and add a page number at
  1607.        the foot of each page.
  1608.  
  1609.        To do these things edit the code to:-
  1610.  
  1611.        Declare output fields
  1612.           Aircraft.knownas : Aircraft.type : Aircraft.mark
  1613.           page number                  'New Field
  1614.        end
  1615.        Declare variables
  1616.           lasttype as text
  1617.        end
  1618.        bold on
  1619.        print report header
  1620.        for aircraft with typename in order
  1621.           if bottom margin < 1 then
  1622.              bold on : print page footer
  1623.              page feed : print page header : bold off
  1624.           end if
  1625.           if aircraft.type <> lasttype then
  1626.              bold on : underline on
  1627.              print group header
  1628.              bold off : underline off
  1629.           end if
  1630.           print list items
  1631.        next
  1632.        print report footer
  1633.  
  1634.  
  1635.                                    - 28 -
  1636. ................................................................................
  1637.  
  1638.        Now edit the output format to:-
  1639.  
  1640.        .Report header
  1641.            ════════════════════════════════════════════════════
  1642.                        AIRCRAFT LIST BY TYPE
  1643.            ────────────────────────────────────────────────────
  1644.        .Group Header
  1645.  
  1646.            ████████████████
  1647.        .List Items
  1648.                    ████████████████     ██████████████████
  1649.        .Page header
  1650.            ════════════════════════════════════════════════════
  1651.                     Aircraft List By Type (Cont)
  1652.            ────────────────────────────────────────────────────
  1653.        .Page Footer
  1654.  
  1655.                                - ██ -
  1656.        .Report Footer
  1657.            ════════════════════════════════════════════════════
  1658.        .End
  1659.  
  1660.        The new print sections Report Header, Report Footer, and Page
  1661.        Header contain only fixed text.  The new section Page Footer
  1662.        contains the new field "page number" and the "Trim trailing
  1663.        spaces" attribute should be set to "Yes" in this.  This will
  1664.        keep the correct spacing of   - 9 -    and   - 10 -    when the
  1665.        page numbers are printed.
  1666.  
  1667.  
  1668.        So far all the fields we have printed are from the same form
  1669.        "Aircraft".  Suppose that we also wanted to list the country of
  1670.        origin for each aircraft.  The "Aircraft" form does not hold
  1671.        this information but the "Manufacturers" form has a field
  1672.        "Nationality". To incorporate this field into the report all we
  1673.        have to do is declare it as an output field and then arrange to
  1674.        have that field in memory when we print the list items. We can
  1675.        load the correct record from the "Manufacturers" form by using
  1676.        the linking data "Name" in the manufacturers form and
  1677.        "Manufacturer" in the "Aircraft" form.  This is a similar
  1678.        process to looking up data except that a pre defined
  1679.        relationship is not necessary. We can tell Easy Base exactly
  1680.        what we want within the code.
  1681.  
  1682.        Declare output fields
  1683.           Aircraft.knownas : Aircraft.type : Aircraft.mark
  1684.           Manufacturers.nationality : Page number
  1685.        end
  1686.        Declare variables
  1687.           Lasttype as text
  1688.        end
  1689.  
  1690.  
  1691.                                    - 29 -
  1692. ................................................................................
  1693.  
  1694.        '.....................PRINT REPORT HEADING...
  1695.        print report header
  1696.        '.................
  1697.        for aircraft with typename in order
  1698.           '..................PRINT HEADERS AND FOOTERS...
  1699.           if bottom Margin < 1 then
  1700.              bold on : print page footer
  1701.              page feed : print page header : bold off
  1702.           end if
  1703.           '..................PRINT GROUP HEADERS.........
  1704.           if aircraft.type <> lasttype then
  1705.              bold on : underline on
  1706.              print group header
  1707.              bold off : underline off
  1708.           end if
  1709.           '...............LOAD MANUFACTURERS NATIONALITY..
  1710.           for manufacturers with name = aircraft.manufacturer
  1711.              Print list items
  1712.           next
  1713.           '..............
  1714.        next
  1715.        print report footer
  1716.  
  1717.        Because the procedure code is becoming longer, remarks are
  1718.        added to make it easier to see which parts of the code do what.
  1719.        You can add remarks to your code anywhere by prefixing them
  1720.        with an apostrophe.
  1721.  
  1722.        At the point where we are about to print the list items we
  1723.        start another "For" loop.  This time "For Manufacturers".  When
  1724.        one "For" loop is "Nested" within another, the record currently
  1725.        loaded by the first loop remains in memory while the records
  1726.        selected by the "Nested" loop are processed and all the fields
  1727.        of both records are available at the same time.
  1728.  
  1729.        As we have qualified the "Manufacturers" loop:-
  1730.  
  1731.        for manufacturers with name = aircraft.manufacturer
  1732.  
  1733.        only the single record in which the "Name" field matches the
  1734.        "Aircraft.manufacturer" field which is currently loaded by the
  1735.        outer loop will be selected from the "Manufacturers" form.
  1736.  
  1737.        While we have both the required records in memory we print the
  1738.        list items.
  1739.  
  1740.        All that remains to do now is to edit the output format and add
  1741.        the "Manufacturers.nationality" field to the .List Items
  1742.        section.
  1743.  
  1744.  
  1745.  
  1746.  
  1747.                                    - 30 -
  1748. ................................................................................
  1749.  
  1750.        By nesting loops in this way, you can list data from any number
  1751.        of different forms which have "Linking" data in one of their
  1752.        fields.  Where only one record matches as in the example above
  1753.        then the required fields go in the .List items section with the
  1754.        other fields.  Where there are many matches (Related list) the
  1755.        fields from the secondary loop have their own print section.
  1756.        (See example on page 5)
  1757.  
  1758.        Now we can print any of the fields from any "Related" forms in
  1759.        any order.  We are still, however, listing all the records from
  1760.        the "Aircraft" form and we may for example only wish to print
  1761.        those records which are in the "Bomber" group.
  1762.  
  1763.        Start a new procedure and enter the code:-
  1764.  
  1765.        Declare output fields
  1766.           Aircraft.knownas : Aircraft.type : Aircraft.base
  1767.        end
  1768.        for aircraft with type = "Bomber"
  1769.           print list items
  1770.        next
  1771.  
  1772.        Create the output format placing the three output fields within
  1773.        the .List Items section.
  1774.  
  1775.        When you run this report, only the bombers will be listed but,
  1776.        once more, the aircraft names will be in the order in which
  1777.        they were entered to the form.
  1778.  
  1779.        To get them in alphabetic order we must again use the compound
  1780.        index on the "Typename" field. This time we have to ensure that
  1781.        the loop starts with the first "Bomber" and ends with the last
  1782.        "Bomber".
  1783.  
  1784.        Declare output fields
  1785.           Aircraft.knownas : Aircraft.type : Aircraft.base
  1786.        end
  1787.        declare variables
  1788.           group as text
  1789.        end
  1790.        group = "Bomber"
  1791.        for aircraft with typename > "Bomber"
  1792.           if aircraft.type <> group then exit for
  1793.           print list items
  1794.        next
  1795.  
  1796.        Before starting the "For" loop we set a variable "Group" to the
  1797.        value "Bomber". The "For" loop is then qualified such that the
  1798.        records will be processed with "Typename" in order but starting
  1799.        with the first occurrence of "Bomber" in the field.  To stop
  1800.        the loop when all the bombers have been processed we test the
  1801.        contents of the "Aircraft.type" field on each iteration of the
  1802.  
  1803.                                    - 31 -
  1804. ................................................................................
  1805.  
  1806.        loop and when the first record is loaded which is not a bomber
  1807.        we stop processing the loop with the command "Exit For".
  1808.  
  1809.        As in the first procedure, we could now add Page headers, Page
  1810.        footers and number the pages Etc.
  1811.  
  1812.        Suppose however that having created this procedure we now
  1813.        wanted a list of all the "Airliners".
  1814.  
  1815.        We could achieve this by changing "Bomber" to "Airliner" within
  1816.        the code but this would be time consuming. It would be much
  1817.        better if we could tell Easy Base which type group we wanted at
  1818.        the start of the procedure and have Easy Base make the
  1819.        necessary changes.
  1820.  
  1821.        To supply "Variables" to a procedure before running we use an
  1822.        "Input Screen", the third part of a procedure.  Save the code
  1823.        and select item 3 (Create Input Screen) from the procedures
  1824.        menu.
  1825.  
  1826.        As soon as you select item 3 Easy Base will ask if you wish to
  1827.        copy an existing form. Type "N" for no.  The next screen will
  1828.        be familiar to you.  It is exactly the same as the form design
  1829.        screen.
  1830.  
  1831.        When you first designed your forms, the form design routine
  1832.        performed two tasks. It created your form and also a default
  1833.        input screen from which to enter data. Now that you are about
  1834.        to create input screens for procedures, the same routine is
  1835.        used to design the screen.  It does not, of course, create a
  1836.        parallel form.
  1837.  
  1838.        All the facilities for "Polishing" your forms - all the
  1839.        facilities for deriving, calculating looking up and testing
  1840.        derivations which you had in Form Design are also available for
  1841.        Input Screen design.
  1842.  
  1843.        The only difference you will notice is that when you define a
  1844.        field, the "Unique" and "Indexed" attributes are marked "Not
  1845.        Applicable" and when you run the procedure, only the "Options"
  1846.        "Clear Screen after Running Procedure" and "Clear Field on
  1847.        Editing" are available.
  1848.  
  1849.        Move the cursor to somewhere near the middle of the screen and
  1850.        type:- "Which Aircraft type would you like listed".  Then press
  1851.        F10 to define a field.
  1852.  
  1853.        If, in the aircraft form the "Type" field had been defined as a
  1854.        choice field, then we would define this field as a choice field
  1855.        and use the same list.
  1856.  
  1857.        If, on the other hand the "Type" field in the "Aircraft" form
  1858.  
  1859.                                    - 32 -
  1860. ................................................................................
  1861.  
  1862.        looked up its contents from a core data form containing the
  1863.        type names then we would set the attributes:-
  1864.  
  1865.        Name            type
  1866.        Data type       text
  1867.        Field Length    15    (Same as the "Type" field in "Aircraft")
  1868.        Mandatory       Yes
  1869.        User Entry      Yes
  1870.        Display         Field  (or text or Alt colours as you wish)
  1871.        Derived         No
  1872.  
  1873.        The field will of course be derived:- Lookup(Aircraft,type)
  1874.        but as we have not yet entered the relationship, we will leave
  1875.        the derived attribute set to "No" to prevent an error message
  1876.        when we save the screen.
  1877.  
  1878.        Save the screen.  When you do, you will be asked to select
  1879.        between "Repeat Screen after F2" and "Run Once and Exit".
  1880.  
  1881.        If you choose the first option then the procedure will repeat
  1882.        until you press the Escape Key. If you choose the second
  1883.        option, control will return to the procedures menu after the
  1884.        report has been run.
  1885.  
  1886.        Now save the procedure.  Let's call it "Aircraft By Type".
  1887.  
  1888.        You may have noticed that all Form, Field and Procedure names
  1889.        so far have been single words.  There is no restriction on
  1890.        using multiple words in names but single ones make code much
  1891.        easier to read. The only good reason to use more than one word
  1892.        is in a reporting procedure name. After the procedure has been
  1893.        run the status line in Browse mode will be "Procedure:-
  1894.        Aircraft By Type" which makes more sense to an end user than
  1895.        "Procedure:- ACbytyp".
  1896.  
  1897.        Now go to Relationships and enter the relationship "Aircraft"
  1898.        between "Aircraft by Type" and "Aircraft" linking the two
  1899.        fields "Type".
  1900.  
  1901.        Reload the "Aircraft by Type" procedure and edit the Input
  1902.        screen setting the derived attribute to "yes" and entering the
  1903.        derivation formula:-  Lookup(aircraft,type)
  1904.  
  1905.        Save the screen again and select "Edit Procedure Code".
  1906.  
  1907.        To use the Input screen quickly you could change the two
  1908.        occurrences of "Bomber" to input.type. However, now that we
  1909.        have an input.type field the variable "group" is superfluous.
  1910.  
  1911.        The finished procedure code and Output format are shown on the
  1912.        next page.
  1913.  
  1914.  
  1915.                                    - 33 -
  1916. ................................................................................
  1917.  
  1918.        Declare output fields
  1919.           Aircraft.knownas : Aircraft.base
  1920.           Page number : input.type
  1921.        end
  1922.        Print report header
  1923.        for aircraft with typename > input.type
  1924.           if bottom margin < 1 then
  1925.              print report footer
  1926.              page feed : print page header
  1927.           end if
  1928.           if aircraft.type <> input.type then exit for
  1929.           print list items
  1930.        next
  1931.        print report footer
  1932.        page feed
  1933.  
  1934.  
  1935.        ......................Output Format.........
  1936.  
  1937.        .Report Header
  1938.               ══════════════════════════════════════════════
  1939.                             ████████████ LIST
  1940.                             ════════════
  1941.                   Name                   Built at
  1942.               ──────────────────────────────────────────────
  1943.        .Page header
  1944.               ──────────────────────────────────────────────
  1945.                   Name                   Built at
  1946.               ──────────────────────────────────────────────
  1947.        .List items
  1948.                   ████████████████████   █████████████████
  1949.        .Page Footer
  1950.  
  1951.                                - ██ -
  1952.        .Report Footer
  1953.               ══════════════════════════════════════════════
  1954.        .End
  1955.  
  1956.  
  1957.        The field in the Report header is input.type.  The fields in
  1958.        the list items are Aircraft.knownas and Aircraft.base.
  1959.        The field in the page footer is Page number.
  1960.  
  1961.        Suppose now that we print out the report and find that we had
  1962.        entered all the "Aircraft" "Knownas" fields in Upper case and
  1963.        all the "Base" fields in Lower case.  This would make the
  1964.        report quite untidy.  There is no need however to change the
  1965.        original data. To print both fields in Upper case all we need
  1966.        to do is alter each of the "Base" field contents using the
  1967.        "Upper" Function before printing it.
  1968.  
  1969.        To do this insert the line:-
  1970.  
  1971.                                    - 34 -
  1972. ................................................................................
  1973.  
  1974.           aircraft.base = upper(aircraft.base)
  1975.  
  1976.        immediately before the print list items command.
  1977.  
  1978.        As well as simply "Listing" data you can manipulate it in many
  1979.        different ways.  You can do any form of arithmetic on numeric
  1980.        fields and you can alter text, date and time fields with over
  1981.        fifty different functions.
  1982.  
  1983.        A function is a small internal routine which returns a value
  1984.        derived from one or more other values (Parameters) which you
  1985.        supply.  For Example, in the code line:-
  1986.  
  1987.        date = datetext(invoice.date)
  1988.  
  1989.        "Datetext" is a function to which you are passing the parameter
  1990.        "Invoice.date".  If invoice.date is 02/02/94 then the function
  1991.        "Datetext" will derive the text "2nd February 1994" and
  1992.        "Return" this as if it were a variable. The output field "Date"
  1993.        will therefore become "2nd February 1994".
  1994.  
  1995.        A functions parameters are always passed to it enclosed in
  1996.        brackets.  If there are more than one then they are separated
  1997.        by commas.
  1998.  
  1999.        The next section of the Manual introduces you to Procedures
  2000.        which perform transactions.  You should now read the
  2001.        descriptions of the following commands in the Programmers
  2002.        Reference.
  2003.  
  2004.        Copy All From
  2005.        Delete Record
  2006.        Clear Records From
  2007.        Update Record
  2008.        Pause On/Off
  2009.        Escape On/Off
  2010.  
  2011.        Together with the field control "Beep".
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.  
  2023.  
  2024.  
  2025.  
  2026.  
  2027.                                    - 35 -
  2028. ................................................................................
  2029.  
  2030.                        PROCEDURES (TRANSACTIONAL)
  2031.  
  2032.        In Data Entry you make a "Transaction" when you add, update or
  2033.        delete a record.  You can make the same transactions in
  2034.        procedures.  There are, however, two major advantages to
  2035.        making your transactions via procedures.
  2036.  
  2037.        1.   You control which transactions can and cannot be made.
  2038.  
  2039.        2.   You can make any number of different transactions in any
  2040.             number of different forms.
  2041.  
  2042.        Consider the "Customers" form.  You would want any of your
  2043.        staff to be able to add a new customer in your absence. If you
  2044.        allow them to do this in Record Entry then they could also
  2045.        (deliberately or inadvertently) alter or delete other customers
  2046.        records.
  2047.  
  2048.        To prevent this, create a new procedure.  Create an input
  2049.        screen.  When you are asked if you wish to copy an existing
  2050.        form - reply "Yes" and select the customers form.  Save the
  2051.        input screen and select Create Procedure Code. Now enter the
  2052.        procedure code:-
  2053.  
  2054.        for customers new record
  2055.           copy all from input
  2056.        next
  2057.  
  2058.        Save the procedure - Let's call it "Enter customers".  You can
  2059.        now call this procedure from your "User Menus" described in the
  2060.        next section and your staff will be able to enter new customers
  2061.        without the opportunity to make any other transactions.
  2062.  
  2063.        You can also control parts of a transaction.  If your
  2064.        "Customers" form had a field for "Creditlimit" then, in the
  2065.        form, you would wish to be able to enter any credit limit you
  2066.        wanted, but you might wish to restrict the amount your staff
  2067.        could enter for a new customer.
  2068.  
  2069.        To do this you simply edit the field attributes for the
  2070.        "Creditlimit" field in the input screen.
  2071.  
  2072.        To set a fixed credit limit of say £500.00 set the user entry
  2073.        attribute to "No", the derived attribute to "Yes" and enter the
  2074.        derivation formula:- 500.
  2075.  
  2076.        To restrict the entry to a maximum of say £1000.00 you would
  2077.        leave the user entry attribute set to "yes" but derive the
  2078.        field:-  If(creditlimit > 1000,blank[beepMaximum credit £1000
  2079.                 for new customers],creditlimit)
  2080.  
  2081.        There might also be fields on the "Customers" form which are
  2082.  
  2083.                                    - 36 -
  2084. ................................................................................
  2085.  
  2086.        irrelevant to the transaction of adding a new customer.  You
  2087.        might also have fields for personal comments which you do not
  2088.        wish your staff to see.  You can simply delete these from the
  2089.        input screen or change them to invisible.
  2090.  
  2091.        In other words you can limit a transaction in any way you wish
  2092.        and the final input screen can be totally different to the
  2093.        original form.
  2094.  
  2095.        Transaction procedures which delete or update records are
  2096.        created in a similar manner but are slightly more complicated.
  2097.  
  2098.        To create a procedure which allows your staff to delete
  2099.        customers, you would again copy the customers form as the input
  2100.        screen.  This time, the only field to which you allow User
  2101.        Entry is the "acountno" field.  You enter a relationship
  2102.        between this report and the "Customers" form linking "acountno"
  2103.        and derive all the other fields you wish to show as:-
  2104.  
  2105.        lookup(customers,name)
  2106.        lookup(customers,address)
  2107.        Etc.
  2108.  
  2109.        Your staff now enter the account number to be deleted. The
  2110.        other "looked up" fields are only there so that the name and
  2111.        address will appear confirming that the correct account number
  2112.        has been entered.
  2113.  
  2114.        The procedures code to delete the record is:-
  2115.  
  2116.        for customers with acountno = input.acountno
  2117.           delete record
  2118.        next
  2119.  
  2120.        As with the procedure to add a record you are still in complete
  2121.        control of what can or cannot be done.  Suppose that you had a
  2122.        field on the "customers" form which you kept updated with his
  2123.        account balance.  You would not want anyone to delete a
  2124.        customer who still had an outstanding balance on his account.
  2125.  
  2126.        To prevent this, just change the derivation for the "balance"
  2127.        field to :-
  2128.  
  2129.        if(lookup(customers,balance) <> 0,blank[beepCustomers cannot be
  2130.        deleted until their A/C is clear],0)
  2131.  
  2132.        You would also set the Mandatory attribute to "Yes" to prevent
  2133.        anyone from ignoring the warning.
  2134.  
  2135.        If you wanted a procedure which allowed staff to change a
  2136.        customers address but no other fields, then you would create
  2137.        the same input screen as for the delete record and the same
  2138.  
  2139.                                    - 37 -
  2140. ................................................................................
  2141.  
  2142.        relationship but this time you would allow user entry to the
  2143.        address field and derive it:-
  2144.  
  2145.        Default(lookup(customers,address))
  2146.  
  2147.        When the operator enters the account number for the customer
  2148.        whose address he wishes to change, the old address will appear
  2149.        to confirm that he has the right customer, but he will be able
  2150.        to edit it.
  2151.  
  2152.        The procedure code would be:-
  2153.  
  2154.        for customers with acountno = input.accountno
  2155.           customers.address = input.address
  2156.           update record
  2157.        next
  2158.  
  2159.        The second advantage of making transactions via procedures is
  2160.        that you can perform several tasks at once. Consider a Video
  2161.        Library hiring films to its members. There will be a form for
  2162.        the films, one for the members and one for daily takings.
  2163.  
  2164.        The procedure used for hiring out the films will have an input
  2165.        screen with a field for the members number, possibly three
  2166.        fields for the film numbers being hired, three more fields in
  2167.        which the films rental prices are looked up and one in which
  2168.        these three fields are totalled.  When the operator runs the
  2169.        procedure all the necessary transactions are performed by the
  2170.        procedure code:-
  2171.  
  2172.        for members with number = input.member
  2173.           if input.film1 <> blank then members.film1 = input.film1
  2174.           if input.film2 <> blank then members.film2 = input.film2
  2175.           if input.film3 <> blank then members.film3 = input.film3
  2176.           update record
  2177.        next
  2178.        if input.film1 <> blank then
  2179.           for films with number = input.film1
  2180.              films.hiredto = input.member
  2181.              films.datehired = system date
  2182.              update record
  2183.           next
  2184.        end if
  2185.        for daily takings
  2186.           total = total + input.total
  2187.           update record
  2188.        next
  2189.  
  2190.        The mid section of the code updating film1's record would of
  2191.        course be repeated for film2 and film3 but has been omitted for
  2192.        clarity.
  2193.  
  2194.  
  2195.                                    - 38 -
  2196. ................................................................................
  2197.  
  2198.                               USER MENUS
  2199.  
  2200.        Once you have created forms and procedures you can create an
  2201.        end user menu system to run them.  You could wait till all your
  2202.        procedures are finished but you will get a much better feel for
  2203.        how your program is developing if you start and use a menu
  2204.        system as you go.  Easy Base includes a User Menu call to its
  2205.        system menus so you can work from your own developing menu
  2206.        system while you are still developing your program.
  2207.  
  2208.        Select "Menus" from the main menu and have a look at the
  2209.        screen.  The Menus screen is an internal form just like the
  2210.        ones you have created. You have all the same facilities to
  2211.        enter, update and delete menus that you have in Data Entry to
  2212.        one of your own forms.
  2213.  
  2214.        Let's create a menu based on some of the forms and procedures
  2215.        previously discussed.
  2216.  
  2217.        The first field on the menus form is "Menu Name".  This is the
  2218.        unique field and a name must be supplied.  We'll call it
  2219.        "Customers".  The next field is "Menu Type". This is a choice
  2220.        field with two options, "Normal" and "Batch Execute".  The
  2221.        "Batch Execute" option will be discussed later.  For now,
  2222.        select "Normal".
  2223.  
  2224.        The third field is "Menu Title". Whatever you enter here will
  2225.        be displayed as a title (or heading) above your menu.
  2226.  
  2227.        The fourth field which is untitled on the screen is a choice
  2228.        field with the options, "Run on Number Key" and "Run on Return
  2229.        Key".  If you choose the first option then the items on your
  2230.        menu will be run as soon as the item number is pressed and if
  2231.        you choose the second option then typing the item number will
  2232.        move the highlight bar to the selection but the item will not
  2233.        be called until the return key is pressed.  In either case you
  2234.        will still be able to select items with the cursor control keys
  2235.  
  2236.        The next field asks for a "Sign on password" if a startup menu.
  2237.        You can start your application (program) on any menu that has
  2238.        a sign on password by restarting Easy Base and using that
  2239.        password instead of your developers password.  In this case we
  2240.        are going to menu the reports which add, delete and alter a
  2241.        customers address. This will be a sub menu so we leave this
  2242.        field blank.
  2243.  
  2244.        The main section of the "Menus" form has three columns of nine
  2245.        fields.  The first column is for the text to be displayed on
  2246.        the menu.  The second is for the type of action (function)
  2247.        which is to be called.  The third is for the individual item.
  2248.  
  2249.  
  2250.  
  2251.                                    - 39 -
  2252. ................................................................................
  2253.  
  2254.        With the cursor in the first text field we type:-
  2255.  
  2256.        Enter a New Customer      and press return.
  2257.  
  2258.        As soon as the cursor moves to the first "Function" field a
  2259.        menu appears listing all the different functions that can be
  2260.        called.  The first four choices allow you to:-
  2261.  
  2262.        1.   Run one of your procedures.
  2263.        2.   Recall the last output from one of your procedures.
  2264.        3.   Call the data entry screen for one of your forms.
  2265.        4.   Call another of your menus.
  2266.  
  2267.        The other functions are selected utilities from the system
  2268.        utilities menu which you may wish to provide to the
  2269.        end user without allowing him access to the entire system.
  2270.  
  2271.        Select "Run Procedure" and press return.
  2272.  
  2273.        When the cursor moves to the "Item" column Easy Base will list
  2274.        all your procedures. Choose "Enter customers".
  2275.  
  2276.        on the next two lines enter:-
  2277.  
  2278.        Delete Existing Customer   Run Procedure    Delete Customers
  2279.        Change Customers Address   Run Procedure    Address Change
  2280.  
  2281.        and press F2 to save the menu.
  2282.  
  2283.        Now let's make a start to the main "Startup" menu.  We may not
  2284.        have any procedures to put on it yet but we can get started
  2285.        with an item to call data entry to "Customers" and one to call
  2286.        the "Customers" sub menu.
  2287.  
  2288.        Fill in a new menus record using the name "Main Menu", Type
  2289.        "Normal" and Title "- M A I N   M E N U -".  This time enter a
  2290.        startup password, say "Fred".  Complete the Items section
  2291.        with:-
  2292.  
  2293.        Customers Records          Data Entry       Customers
  2294.        Customer Updates           User Menu        Customers
  2295.        Program Development        System menus
  2296.  
  2297.        Press F2 to save this menu then press escape all the way out to
  2298.        the DOS prompt (or your hard disk menu system).  Restart Easy
  2299.        Base.  This time, when the sign on screen appears, enter "Fred"
  2300.        and press return.
  2301.  
  2302.        Instead of the system menus, you will see your "Main Menu".
  2303.        If you select item 1 the "Customers" form will come up. If you
  2304.        select item 2 your sub menu will be overlaid and you can run
  2305.        any of the three procedures on it.  If you select item 3 you
  2306.  
  2307.                                    - 40 -
  2308. ................................................................................
  2309.  
  2310.        will be transferred to the Easy Base System menus where you can
  2311.        continue with the development of your program.
  2312.  
  2313.        Whenever you create new procedures or forms you can add them to
  2314.        your menu system.
  2315.  
  2316.        Suppose you would like the utilities, Backup Data, Restore Data
  2317.        and Install Printer to be available from your menu system.
  2318.        Create a new menu, let's call it "Utilities" with the items:-
  2319.  
  2320.        Backup data to disk        Backup Data
  2321.        Restore data from disk     Restore Data
  2322.        Install Printer            Install Printer
  2323.  
  2324.        Save this new menu then edit your main menu to include the new
  2325.        item:-
  2326.  
  2327.        Utilities                  User menu           Utilities
  2328.  
  2329.        When you have called the Easy Base system menus from one of
  2330.        your own menus then pressing escape does not exit the program,
  2331.        it returns you to your own menu.  You close down by pressing
  2332.        escape from your main menu.  When you get back to your "Main
  2333.        Menu" you will notice that the new "Utilities" item is not
  2334.        there. New Menu items cannot be added while the program is
  2335.        running. To incorporate the "Utilities" item you must again
  2336.        exit the program and restart with the password "Fred".
  2337.  
  2338.        As your program develops you can create as many menus as you
  2339.        need. Your "Main Menu" can call up to nine sub menus. Each of
  2340.        those can call another nine sub sub menus Etc Etc. You can also
  2341.        have additional startup menus with different passwords. These
  2342.        can either run completely different menus or can restrict
  2343.        different parts of the menu system to different users.
  2344.  
  2345.        When you start up on one of your menus systems Easy Base
  2346.        creates a default "Tree" structure for it.  From whichever menu
  2347.        is on screen the escape key backsteps down the tree until you
  2348.        reach your "Main Menu" and then exits the program.
  2349.  
  2350.        If one of the "forward" menu calls crosses branches, ie it
  2351.        calls a menu which is also called from a lower level then
  2352.        subsequent presses of the escape key backstep down the current
  2353.        branch and not back "cross tree".
  2354.  
  2355.        You can also make menu calls from low to high levels. (a sub-
  2356.        sub- sub menu can have an item which calls the main menu).
  2357.  
  2358.        In some circumstances you may prefer a hierarchical rather than
  2359.        a tree structure where the main menu is recalled after each
  2360.        individual procedure.  To accomplish this, each final item is
  2361.        placed on its own menu followed by a call to the main menu and
  2362.  
  2363.                                    - 41 -
  2364. ................................................................................
  2365.  
  2366.        the menu type is changed to "Batch Execute".
  2367.  
  2368.        When you create a "Batch Execute" menu then instead of
  2369.        displaying a menu for you to choose from, Easy Base
  2370.        executes each item on the menu in sequence and then returns to
  2371.        the menu which called it.
  2372.  
  2373.        With batch execute menus you can automate many of the processes
  2374.        in your application.  If you have several printouts to be done
  2375.        each day you can have them all done from batch execute menus.
  2376.        Similarly, if you need to update many reporting procedures for
  2377.        later "Recall" to the screen, these can all be done at once.
  2378.        There is no limit to the number of procedures which can be
  2379.        batched - One batch menu can call another.
  2380.  
  2381.        If you create a "Startup" batch menu then, provided it does not
  2382.        call a "Normal" menu, Easy Base will perform all the tasks on
  2383.        the menu and then exit to DOS.
  2384.  
  2385.        If you create a "Startup" batch menu which eventually calls a
  2386.        "Normal" menu then the batch process stops at that point and
  2387.        the "Normal" menu becomes the main (root) menu.  Pressing
  2388.        escape from this menu exits to DOS. it never returns to the
  2389.        startup batch menu which called it
  2390.  
  2391.        Start up batch menus are useful for running regular daily
  2392.        procedures and for forcing the user to check the system date
  2393.        and time.
  2394.  
  2395.        There are many other uses for batch execute menus.  You can
  2396.        automate menu changes. If, for example, running one particular
  2397.        procedure is invariably followed by  running one from a choice
  2398.        of three others then the menu containing the others can be
  2399.        batched after the first procedure.
  2400.  
  2401.        In Easy Base you can create quite long and complex procedures
  2402.        but they are eventually limited by memory constraints.  If you
  2403.        ever run out of memory creating a long procedure then just
  2404.        split it and batch the parts.
  2405.  
  2406.        Don't forget to set the output of non print reports to "Disk"
  2407.        otherwise Browse Mode will be invoked.
  2408.  
  2409.  
  2410.  
  2411.  
  2412.  
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.  
  2419.                                    - 42 -
  2420. ................................................................................
  2421.  
  2422.                            SYSTEM REQUIREMENTS
  2423.  
  2424.        Required.
  2425.  
  2426.            IBM or compatible 286 or higher
  2427.            1Meg Ram
  2428.            600k free conventional memory (for DOS5 and later this
  2429.                    requires the lines:-
  2430.                    device=c:\dos\himem.sys
  2431.                    DOS=high
  2432.                    in your config.sys file)
  2433.  
  2434.        Preferred.
  2435.  
  2436.           3 Meg expanded memory with 2 Meg allocated to PC-Cache
  2437.  
  2438.  
  2439.  
  2440.                            SYSTEM LIMITATIONS
  2441.  
  2442.        Fields per Form         500
  2443.        Indexes per Form        500
  2444.        Record Length           Limited by display of 4 screen pages
  2445.        Records per Form        Limited by Maximum data or index file
  2446.                                length of 2,100 Megabytes
  2447.  
  2448.        Forms per application       }     Total of 500 in
  2449.        Procedures per application  }     any combination.
  2450.        Menus per application             500
  2451.  
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.  
  2462.  
  2463.  
  2464.  
  2465.  
  2466.  
  2467.  
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473.  
  2474.  
  2475.                                    - 43 -
  2476. ................................................................................
  2477.  
  2478.                          DOS FILENAME CONVENTIONS
  2479.  
  2480.        The Easy Base system files are:-
  2481.  
  2482.           EB.EXE     The program file
  2483.           EB.CUR     Initial screen setup
  2484.           EB.SET     Set up options retained between sessions
  2485.           EB.MEN     User Menus form
  2486.           EB.REL     Relationships form
  2487.           EB.MSG     Text and error messages
  2488.           EB.PRS     Printer drivers
  2489.           EB.D01     Main dictionary
  2490.           EB.DO2     Personal dictionary
  2491.  
  2492.        Easy Base does not access data files outside of its own
  2493.        directory. The concept being that the forms, procedures and
  2494.        menus which you create are combined with the system files to
  2495.        produce a new program or "Application".
  2496.  
  2497.        If you already have one application and you wish to start
  2498.        another, you copy the system files to a new directory for the
  2499.        new project. To extract the system files from your original
  2500.        project you can use the DOS copy command with wildcards.
  2501.  
  2502.        Copy C:\OLDDIR\EB*.* C:\NEWDIR
  2503.  
  2504.        The files which you create in writing an application have the
  2505.        following filename convention.
  2506.  
  2507.        Forms
  2508.  
  2509.           BASE(No).DEF      The entry screen definition
  2510.           BASE(No).DAT      The data file
  2511.           BASE(No).(No)     Index files
  2512.  
  2513.        Choice field lists
  2514.  
  2515.           LIST(No).DAT
  2516.  
  2517.        Procedures
  2518.  
  2519.           PROC(No).PRO      The procedure code
  2520.           PROC(No).DEF      The input screen
  2521.           PROC(No).REP      The output from the procedure
  2522.  
  2523.        There are also five individual files
  2524.  
  2525.        MENUS.DAT            The menus you create
  2526.        RELATION.DAT         The relationships you create
  2527.        CHOICES.DIR          The choice list directory
  2528.        BASE.DIR             The forms directory
  2529.        PROC.DIR             The procedures directory
  2530.  
  2531.                                    - 44 -
  2532. ................................................................................
  2533.