home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / clarion / ptcmenu.zip / PTCMENU.DOC < prev   
Text File  |  1990-02-27  |  3KB  |  59 lines

  1. PTCMENU.DOC for PTCMENU                               02/27/90
  2. ===============================================================================
  3. The attached files illustrate a simple technique for passing conditional
  4. information between programs by using the DOS Error Level Code. A controlling
  5. Batch File can be used to capture and interpret the passed Error Level Code
  6. and conditionally branch to the desired program or routine.
  7.  
  8. Files:
  9. MENU.BAT    - the controlling Batch File, use CEDT to edit.
  10. PTCMENU.CLA - the Menu Selection Source Code (requires DOS1.BIN LEM).
  11. PTCMENU.DAT - the Menu Item Descriptions File, use CSCN to edit.
  12. PTCMENU.DOC - this file.
  13.  
  14. History:
  15. I originally began using this Batch File technique in 1986, using a compiled
  16. program written in Microsoft QuickBASIC. I have over 300 installations of the
  17. orignal in daily use! I have re-written this version of PTCMENU in Clarion to
  18. illustrate a simple method of providing you and your clients with a simple
  19. System Menu front-end.
  20.  
  21. About MENU.BAT:
  22. 1) Arrange all "IF ERRORLEVEL . . ." traps in descending order.
  23. 2) The first "IF ERRORLEVEL . . ." should be one higher than the highest
  24. Error Level Code you wish to trap.
  25. 3) Include a " GOTO label" after the lowest desired Error Level Code to trap
  26. ERRORLEVEL = 0.
  27. 4) The Error Level Code can be from 0 to 255.
  28. 5) Each "GOTO label" subroutine is, in effect, a Batch File within a Batch
  29. File. The last line of each subroutine should be "GOTO START", this will
  30. return control to the ":START" postion.
  31.  
  32. About PTCMENU.DAT:
  33. This is a Menu Item File that contains descriptions of each menu item choice.
  34. Please use as follows:
  35. 1) The ENCRYPT Password is "ROSEBUD".
  36. 2) This file consists of exactly 20 records, no more or no less!
  37. 3) Each Record Number corresponds to a Menu Item ,e.g. Record #1 = Menu Item #1.
  38. 4) Use Scanner to modify the Menu Item Descriptions.
  39. 5) Do not DELETE any records! If you wish to remove a Menu Item, then blank
  40. out that field.
  41.  
  42. About PTCMENU:
  43. Since this technique results in "0K RAM" , there is none of the overhead
  44. associated with using the Clarion "RUN" command. Some commercial menu programs
  45. require as much as 70K of precious RAM. This becomes a problem when RAM is
  46. scarce, such as on a network station. Also, menu selections appear to execute
  47. faster because unlike the "RUN" command, a memory image dump file does not have to
  48. be written to the disk. Once you grasp the basics of PTCMENU, you can use your
  49. creativity to enhance and customize your own System Menu, e.g. add Help files,
  50. utilities, mutiple menus, etc.
  51. ===============================================================================
  52. Randy Goodhew
  53. PROFESSIONAL TECHNOLOGIES CONSULTANTS
  54. 508 Greenup Street
  55. Covington, Kentucky 41011
  56. Phone: (606) 491-3020
  57. FAX and Modem available.
  58.  
  59.