home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / MSWBASE4.ZIP / README.SBT < prev   
Encoding:
Text File  |  1989-12-14  |  7.6 KB  |  166 lines

  1.   79 
  2. ===============================================================================
  3.                         MICROSOFT DATABASE EXAMPLES                         
  4.                              December 12, 1989
  5. ===============================================================================
  6.  
  7.   74 
  8. The example applications provided with Microsoft Database are explained 
  9. in detail in the User Guide, Volume 2, Chapters 21 through 25. 
  10. This document explains the directory structure of the examples disk,
  11. and lists significant changes made to the applications since the User 
  12. Guide went to press.
  13.  
  14. The example applications are provided for demonstration purposes only and
  15. should not be assumed to be suitable for commercial use without further
  16. modification. Many of the screens have been created at VGA resolution, and
  17. some of them may require adjustment with the Form Designer module for
  18. display in other resolutions.
  19.  
  20.  
  21. EXAMPLES DISK DIRECTORY STRUCTURE
  22. ---------------------------------
  23. The root directory contains four subdirectories, IDEAS, INVENTRY, 
  24. MAILING, and TRADING. Each contains example data and programs relating to
  25. one of the chapters in the User Guide.
  26.  
  27. IDEAS contains a number of example programs relating to Chapter 25, plus
  28. some additional items. One of these is a program, GAME.SBP, which 
  29. illustrates the ability of Microsoft Database's DML programming language
  30. to handle unusual specifications. There is also a small two-file dBase 
  31. application, which you may examine either by opening files and browsing
  32. or by running the query CLITEL.SBQ.
  33.  
  34. INVENTRY contains an Inventory Control application, which is described in
  35. Chapter 22. The application is operated from within Microsoft Database's
  36. normal menu environment, and is designed around a set of forms. It uses
  37. memory-resident DML subroutines to execute procedures triggered by
  38. user-defined pushbuttons.
  39.  
  40. MAILING contains a USA oriented Mailing List Management application, 
  41. driven entirely by a DML program. User access is fully controlled by the
  42. program. The application is described in Chapter 23.
  43.  
  44. TRADING contains a system for the hypothetical Microsoft Securities 
  45. Trading firm. This shows how a professional business systems analyst could
  46. use Microsoft Database to develop a full-scale database application. The 
  47. application is described in Chapter 24.
  48.  
  49.  
  50. MODIFICATIONS TO THE TRADING APPLICATION
  51. ----------------------------------------
  52. Version 1.00  December 1989 
  53.  
  54. GENERAL
  55. -------
  56.   74 
  57.  
  58.   74 
  59. 1.  The monetary fields in the TRANS file are defined as calculated  
  60.     fields, whose values are derived from values held in the STOCKS,
  61.     CURRENCY and CLIENTS files. These definitions effectively        
  62.     demonstrate the power of file definition. However a working       
  63.     application would not use this method of deriving monetary
  64.     amounts, as the values will be recalculated using the latest data 
  65.     each time a TRANS record is updated. The transaction value may 
  66.     alter as a result of entering a certificate number or updating the
  67.     record after a certificate advice or contract note has been sent.
  68.  
  69.     A better method of deriving the relevant values would be as 
  70.     follows:
  71.  
  72.   - Define the relevant fields as simple text or numeric rather than 
  73.     read-only calculation
  74.   - Request entry during Transaction Entry of the first few fields 
  75.     including the Client, Trans_Type and Quantity
  76.   - Derive the calculated results using program commands or form 
  77.     calculations rather than in the file definition
  78.   - Display the calculated results and store the record
  79.  
  80. 2.  Report programs were originated from the Form Designer. When 
  81.     creating a report, the Form Designer generates a .SBV form and a 
  82.     .SBP report program. The original forms named STKR*.SBV are 
  83.     included. The report programs were modified as detailed below and 
  84.     their names changed to STKR*E.SBP. The original programs were then
  85.     deleted. You can re-create the original programs by opening the 
  86.     form equivalents in the Form Designer then saving them.
  87.  
  88. 3.  Entering and editing of radio button fields follows the Windows 
  89.     standard but may not be intuitive. When in a radio button group 
  90.     you move from one to another using the up/down cursor keys. You 
  91.     select a button using the Space bar.
  92.  
  93. 4.  Some of the routines offer a choice of color screen-oriented or 
  94.     monochrome report-oriented forms. Screen forms should use screen 
  95.     fonts and printer forms printer fonts. The fonts on the report-
  96.     oriented forms are for the most part available with a Hewlett-
  97.     Packard LaserJet Series II set to 150 dpi. (The exception is 
  98.     System 9pt for which Microsoft Database generally substitutes 
  99.     Line Printer 8pt). To achieve satisfactory printed results you must 
  100.     first install your own printer under Windows and identify it to 
  101.     Microsoft Database using Printer Setup on the Set menu. You can 
  102.     then edit the forms provided to substitute fonts that are 
  103.     available with your printer and resolution.
  104.  
  105.  
  106. SPECIFIC CHANGES
  107. ----------------
  108. Modifications made after first printing of Microsoft Database Manual Chapter 
  109. 24 are as follows:
  110.  
  111. 1.  STKM modified to:
  112.     -  open form Banner at start
  113.     -  include About option on File menu to display Banner (at m17)
  114.     -  STATUS OFF at start and STATUS ON at end
  115.     -  give display/print option for Documents other than labels
  116.     -  on entry to Certificate advices if CERTS exists remove it
  117.     -  on entry to Contract notes if INVS exists remove it
  118.     -  if certificate advices or contract notes displayed then clear 
  119.        screen before selecting next option
  120.     -  SELECT WHERE on TRANS before Statements to turn off filter
  121.     -  trap error 11 generated by Cancel on ASK filter dialog
  122.     -  SELECT FIRST before merging LEINVS.SBT
  123.     -  Correct REQUEST syntax before Cert or Invoice Labels    
  124.     -  OPEN FILE "CERTS" or "INVS" before Cert or Invoice Labels
  125.     -  Remove spurious WHERE from routine at m341
  126.     -  Correct LABELS USING syntax
  127.  
  128. 2.  Report programs modified to:
  129.     -  trap errors 
  130.     -  give repeat print option
  131.     -  eliminate pathname from OPEN file statements
  132.     -  eliminate ASK from WHERE and ORDER sections   
  133.     -  put first line of heading including date into string
  134.     -  return to STKM with ret% flag set
  135.     -  have new filenames ending in E.SPB
  136.  
  137. 3.  Report program STKRRE modified (see manual pp 25-19) to:
  138.     -  order transactions by transaction number within stock
  139.     -  show summary table of commissions by stock
  140.     -  put headings into strings and set strings to null prior to 
  141.        summary table print
  142.     -  avoid attempt to DIM arrays if not first time around
  143.  
  144. 4.  STKFC, STKFS and STKFT modified to:
  145.     -  use FILE in place of OPEN FILE
  146.     -  FORM or FORM 1 in place of VIEW before pushbutton wait
  147.     -  Branch around FORM or FORM 1 first time through    
  148.     -  after new record Enter make new record the current record
  149.     -  remove BLANK FORM after Delete
  150.     -  issue SELECT WHERE after CLOSE FORM to remove any filter
  151.  
  152. 5.  STKFC and STKFS print routines modified to SELECT FORM before 
  153.     PRINT CURRENT
  154.  
  155. 6.  STKFC modified to:
  156.     -  turn off external file display if set by Next page pushbutton
  157.     -  before new record Enter set default Class.CLIENTS = P
  158.  
  159. 7.  STKFT modified to:
  160.     -  before new record Enter set default Trans_Type.TRANS = b
  161.  
  162. 8.  FYE Stock.STOCKS made normal numeric rather than constant. 
  163.     Constants set to value at beginning of data entry, hence contant 
  164.     formula as originally specified gives initial value of zero.
  165.   
  166.