home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / KTOOLS31.ZIP / KTLSDEMO.DOC next >
Encoding:
Text File  |  1988-01-15  |  2.0 KB  |  47 lines

  1.  
  2.  
  3. KTLSDEMO:   is a simple program that shows but a few of the uses of KTOOLS.
  4.  
  5. The screen routines are common to all programs which provide screen output.
  6. The  string  routines  are  useful  in  most  programs. For data input with
  7. strings, I strongly suggest you obtain a copy of PTOOLENT and look it over.
  8. I converted it to TP4 with no effort at all.
  9.  
  10. The light pen  routines are  not demonstrated in ktlsdemo simply because not
  11. everyone has one, and I only use it on a couple of programs. Still I thought
  12. they might be useful to someone.
  13.  
  14. After program startup and before we move through  the  KATTR  routine,  the
  15. screen is saved and replaced after the box is drawn.
  16.  
  17. Both  Menu  routines are used.  Oddly  enough, I  have found  that a lot of
  18. programmers  use  menus  only to select from a list of items that they will
  19. have their programs act upon.  I use the menu routines for  this  as  well,
  20. but  another use I make of them is to select from constants which represent
  21. variable information used within my programs.  For example, if  I  want  an
  22. integer  input,  but only want specific values, then with a menu I'll offer
  23. the user the choice  of  all  available  values,  which  point  to  ordinal
  24. positions within say a record of AllAvailableValues. So on and so forth.
  25.  
  26. The  file  copy/rename  routine is not used simply because I didn't want to
  27. fill/add to the junk on your drive. It does  however  work  as  advertised.
  28. Just like a tootsie roll, works good & last a long time!
  29.  
  30. PikDir  is  used  but  not  until  you  pass command line paramaters to it.
  31. Drives A - F are allowed, but if you pass an invalid drive letter  that  is
  32. what  you'll get; an invalid drive.  Try the following command lines to see
  33. ktlsdemo in action.
  34.  
  35. ?:>ktlsdemo c: false     {or whatever your current drive letter is}
  36.             |_________________________________|
  37.  
  38. ?:>ktlsdemo c: true                   {ditto}
  39.  
  40. ?:>ktlsdemo f:           {assuming you don't have drive F}
  41.  
  42. ?:>ktlsdemo z:           {if you haven't seen enough already}
  43.  
  44.  
  45.  
  46.  
  47.