home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / packer / arc / arctool / field.txt < prev    next >
Encoding:
Text File  |  1988-09-29  |  2.1 KB  |  44 lines

  1.                                     FIELD.TPU
  2.                                     ---------
  3.  
  4. FIELD.TPU is the Turbo Pascal unit obtained by compiling FIELD.PAS.  Turboì
  5. Pascal units are explained in chapter 4 of the language manual for version 4. ì
  6. FIELD.PAS was developed from KEYIN.INC by Michael H. Hughes so many of theì
  7. coding ideas in FIELD.PAS are his; however, FIELD.PAS incorporatesì
  8. significant changes.
  9.  
  10. The main function in KEYIN.INC was called keyin.  This function located eachì
  11. field on the screen, allowed data entry to and editing of the field, and onì
  12. termination returned the number of the next field to be processed.  The dataì
  13. entered was stored in a string or an array.  The main function in FIELD.PASì
  14. is called editfield.  Like keyin it locates each field on the screen and ì
  15. allows data entry to and editing of the field, but it returns the key code ofì
  16. the terminating key rather than the number the next field.  As can be seen inì
  17. the demonstration programs, this allows construction of more elaborateì
  18. screens.  Both vertical and horizontal tabing from field to field may beì
  19. programmed for editing but suppressed during initial data entry.  Data canì
  20. still be stored in strings, but numbers can now be stored as variables.
  21.  
  22. OLDDEMO.PAS is the original demonstration program TESTKEY.PAS recoded to useì
  23. the new unit.  Certain keying errors could spoil the screen of the oldì
  24. program.  The new program appears to be bullet proof.
  25.  
  26. NEWDENO.PAS is a simple chemical engineering program that illustrates how toì
  27. use FIELD.TPU to create a screen with a large number of fields that have theì
  28. same format.  This screen style is required for many chemical engineeringì
  29. problems.
  30.  
  31. FLDTEST.PAS was written to help debug FIELD.PAS.  By playing with thisì
  32. program you will get a good idea how the unit works.
  33.  
  34. Hopefully these demonstration programs and the comments in the source code ofì
  35. the unit will allow interested programmers to use this unit without undueì
  36. pain.
  37.  
  38.                                Frank Wood, Jr.
  39.  
  40.                                CIS User ID 74375,127
  41.  
  42.                                July 2, 1988
  43. 
  44.