home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / FOXPRO / CALNDR / CAL.MAN < prev    next >
Text File  |  1992-02-10  |  890b  |  30 lines

  1. Mon  02-10-1992
  2.  
  3.  
  4. CAL.PRG (source included) exports one function GetADate which displays a
  5. calendar, lets the user move around using cursor keys (pgdn/up moves by
  6. months, ^pgdn/up moves by years), and returns the selected date.  Client
  7. routines should set __color_std and __color_enhcd before calling and
  8. must check lastkey() to make sure user didn't hit escape.
  9.  
  10. To use declare:
  11. #include cal.hdr
  12.  
  13. in your source file and link with cal.obj
  14. (eg LINK myprog.obj+cal.obj,,,d:\force\lib\force)
  15.  
  16. Note that I'm not certain I know all of the arcana of testing for Leap
  17. Year (I think I got them all but...).  If you care, check out Function
  18. IsLeapYear.
  19.  
  20. (This code is public domain, free, and I don't care what the hell you do
  21. with it).
  22. Comments, questions, flames to
  23. Walter Henry
  24. Conservation Lab
  25. Stanford University Libraries
  26. 415-447-4884
  27. whenry@lindy.stanford.edu
  28.  
  29.  
  30.