home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 18 / 18.iso / w / w380 / 3.ddi / STYMACR2.CMZ / AUTOCAL.SMM < prev    next >
Encoding:
INI File  |  1992-06-11  |  27.0 KB  |  2,034 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     HP LaserJet IIISi
  13. [port]
  14.     LPT2:
  15. [lang]
  16.     1
  17. [desc]
  18.     Accessed from a power field in _calmon.sty to automate monthly calendars. 
  19.     
  20.     
  21.     
  22.     
  23.     708329117
  24.     123
  25.     677005541
  26.     71584087
  27.     7
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     3
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [tag]
  54.     Body Text
  55.     2
  56.     [fnt]
  57.         TimesNewRomanPS
  58.         200
  59.         0
  60.         49152
  61.     [algn]
  62.         1
  63.         1
  64.         0
  65.         0
  66.         0
  67.     [spc]
  68.         33
  69.         273
  70.         1
  71.         0
  72.         0
  73.         1
  74.         100
  75.     [brk]
  76.         4
  77.     [line]
  78.         8
  79.         0
  80.         1
  81.         0
  82.         1
  83.         1
  84.         1
  85.         10
  86.         10
  87.         1
  88.     [spec]
  89.         0
  90.         0
  91.         
  92.         0
  93.         1
  94.         1
  95.         0
  96.         0
  97.         0
  98.         0
  99.     [nfmt]
  100.         272
  101.         1
  102.         3
  103.         .
  104.         ,
  105.         $
  106.     Body Text
  107.     0
  108.     0
  109. [tag]
  110.     Function
  111.     3
  112.     [fnt]
  113.         TimesNewRomanPS
  114.         200
  115.         0
  116.         49153
  117.     [algn]
  118.         1
  119.         1
  120.         0
  121.         0
  122.         0
  123.     [spc]
  124.         33
  125.         244
  126.         1
  127.         0
  128.         0
  129.         1
  130.         100
  131.     [brk]
  132.         68
  133.     [line]
  134.         8
  135.         0
  136.         1
  137.         0
  138.         1
  139.         1
  140.         1
  141.         10
  142.         10
  143.         1
  144.     [spec]
  145.         0
  146.         0
  147.         
  148.         0
  149.         1
  150.         1
  151.         0
  152.         0
  153.         0
  154.         0
  155.     [nfmt]
  156.         272
  157.         1
  158.         3
  159.         .
  160.         ,
  161.         $
  162.     Body Text
  163.     0
  164.     0
  165. [tag]
  166.     Header
  167.     4
  168.     [fnt]
  169.         TimesNewRomanPS
  170.         200
  171.         0
  172.         49153
  173.     [algn]
  174.         4
  175.         1
  176.         0
  177.         0
  178.         0
  179.     [spc]
  180.         33
  181.         273
  182.         1
  183.         0
  184.         0
  185.         1
  186.         100
  187.     [brk]
  188.         4
  189.     [line]
  190.         8
  191.         0
  192.         1
  193.         0
  194.         1
  195.         1
  196.         1
  197.         10
  198.         10
  199.         1
  200.     [spec]
  201.         0
  202.         0
  203.         
  204.         0
  205.         1
  206.         1
  207.         0
  208.         0
  209.         0
  210.         0
  211.     [nfmt]
  212.         272
  213.         1
  214.         3
  215.         .
  216.         ,
  217.         $
  218.     Header
  219.     0
  220.     0
  221. [tag]
  222.     Remark
  223.     5
  224.     [fnt]
  225.         TimesNewRomanPS
  226.         200
  227.         255
  228.         49152
  229.     [algn]
  230.         1
  231.         1
  232.         0
  233.         0
  234.         0
  235.     [spc]
  236.         33
  237.         273
  238.         1
  239.         0
  240.         0
  241.         1
  242.         100
  243.     [brk]
  244.         4
  245.     [line]
  246.         8
  247.         0
  248.         1
  249.         0
  250.         1
  251.         1
  252.         1
  253.         10
  254.         10
  255.         1
  256.     [spec]
  257.         0
  258.         0
  259.         
  260.         0
  261.         1
  262.         1
  263.         0
  264.         0
  265.         0
  266.         0
  267.     [nfmt]
  268.         272
  269.         1
  270.         3
  271.         .
  272.         ,
  273.         $
  274.     Remark
  275.     0
  276.     0
  277. [lay]
  278.     Standard
  279.     513
  280.     [rght]
  281.         15840
  282.         12240
  283.         1
  284.         1440
  285.         1440
  286.         1
  287.         1440
  288.         1440
  289.         0
  290.         1
  291.         0
  292.         1
  293.         0
  294.         2
  295.         1
  296.         1440
  297.         10800
  298.         4
  299.         1
  300.         720
  301.         1
  302.         1440
  303.         1
  304.         2160
  305.         1
  306.         2880
  307.     [hrght]
  308.     [lyfrm]
  309.         1
  310.         11200
  311.         0
  312.         0
  313.         12240
  314.         1440
  315.         0
  316.         1
  317.         3
  318.         1 0 0 0 0 0 0
  319.         0
  320.         0
  321.         1
  322.     [frmlay]
  323.         1440
  324.         12240
  325.         1
  326.         1440
  327.         72
  328.         1
  329.         792
  330.         1440
  331.         0
  332.         1
  333.         0
  334.         1
  335.         1
  336.         0
  337.         1
  338.         1440
  339.         10800
  340.         0
  341.     [txt]
  342. Creator: Powell H. Smith
  343.  
  344. <:R1,1,3,9270,>Date of Creation: 06/22/91    Release 7M
  345.  
  346. >
  347.     [frght]
  348.     [lyfrm]
  349.         1
  350.         13248
  351.         0
  352.         14400
  353.         12240
  354.         15840
  355.         0
  356.         1
  357.         3
  358.         1 0 0 0 0 0 0
  359.         0
  360.         0
  361.         2
  362.     [frmlay]
  363.         15840
  364.         12240
  365.         1
  366.         1440
  367.         792
  368.         1
  369.         14472
  370.         1440
  371.         0
  372.         1
  373.         0
  374.         1
  375.         1
  376.         0
  377.         1
  378.         1440
  379.         10800
  380.         0
  381.     [txt]
  382. >
  383. [elay]
  384. [l1]
  385.     0
  386. [pg]
  387.     7
  388.     53 0 24 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  389.     107 0 21 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  390.     161 0 44 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  391.     215 0 14 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  392.     269 0 21 0 0 1 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  393.     323 0 0 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  394.     334 0 10 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  395. [edoc]
  396. <:#480,9360>'ATTENTION : If you change the name of the calendar style sheet, _calmon.sty, you must change the blue text on this page to the new  name you have chosen. 
  397.  
  398. <:#197,9360><:f160,2Tms Rmn,194,0,0>'WARNING : If you modify the contents in _calmon.sty, this macro may not function properly!<:f>
  399.  
  400. <:#197,9360><:f160,2Tms Rmn,194,0,0>'WARNING: This macro is for use with "MM/DD/YY" format ONLY!<:f>
  401.  
  402. <:#240,9360>
  403.  
  404. <:#240,9360>FUNCTION AutoCal()
  405.  
  406. <:#240,9360>SingleStep(0)
  407.  
  408. @Remark@<:#240,9360>'Declaration of Variables
  409.  
  410. <:#240,9360>DEFSTR Month1   <:f160,2Tms Rmn,255,0,0>'This variable contains the month direct from the dialog box.<:f>
  411.  
  412. <:#240,9360>DEFSTR Year1  <:f160,2Tms Rmn,255,0,0> 'This variable contains the year direct from dialog box (YYYY).<:f>
  413.  
  414. <:#240,9360>DEFSTR LMonth  <:f160,2Tms Rmn,255,0,0> 'This variable contains the calendar month in lower case.<:f>
  415.  
  416. <:#240,9360>DEFSTR NMonth <:f160,2Tms Rmn,255,0,0> 'This variable contains the month and day of Calendar Date  (MM/DD/).<:f>
  417.  
  418. <:#240,9360>DEFSTR Stat1   <:f160,2Tms Rmn,255,0,0>'This variable checks for Cancel from dialog box.<:f>
  419.  
  420. <:#240,9360>DEFSTR FirstDayWeek  <:f160,2Tms Rmn,255,0,0> 'This contains the Value of the day of the week the month starts on.<:f>
  421.  
  422. <:#240,9360>DEFSTR LastDay  <:f160,2Tms Rmn,255,0,0>'This contains the value of the number of days in current month.<:f>
  423.  
  424. <:#240,9360>DEFSTR ChkLen  <:f160,2Tms Rmn,255,0,0>'This contains the value representing the number of characters in the year that was typed in Heymon.<:f>
  425.  
  426. <:#240,9360>DEFSTR CurStyleSheet  <:f160,2Tms Rmn,255,0,0>'This contains the style sheet for the current dicument<:f>
  427.  
  428. <:#240,9360>DEFSTR CurDocName <:f160,2Tms Rmn,255,0,0> 'This contains the name of the current document.<:f>
  429.  
  430. <:#240,9360>DEFSTR TotalWindows  <:f160,2Tms Rmn,255,0,0>'This contains the number of MDI windows open when starting macro.
  431.  
  432. @Remark@<:#240,9360>'Declaration of Functions.
  433.  
  434. <:#240,9360>DECLARE BuildDate(M,Y,N)
  435.  
  436. <:#240,9360>DECLARE FillCalendar(F,L)
  437.  
  438. <:#240,9360>DECLARE CheckLeap(M,Y,N)
  439.  
  440. <:#240,9360>DECLARE AdjustTable()
  441.  
  442. <:#240,9360>SingleStep(0)
  443.  
  444. <:#240,9360>NW=IsNewWave()
  445.  
  446. <:#240,9360>IF NW = 0
  447.  
  448. <:#240,9360>    <:f200,2TimesNewRomanPS,255,0,0>'Check for no windows open.<:f>
  449.  
  450. <:#240,9360>    TotalWindows = GetOpenfileCount()
  451.  
  452. <:#240,9360>    IF TotalWindows = 0
  453.  
  454. <:#240,9360>        Message("Click on File/New and choose _calmon.sty with contents to run this macro.")  
  455.  
  456. <:#240,9360>        EXIT FUNCTION
  457.  
  458. <:#240,9360>    ENDIF
  459.  
  460. @Remark@<:#240,9360>    'Check for error in running macro.
  461.  
  462. <:#240,9360>    CurDocName = GetDocInfo$(1)
  463.  
  464. <:#240,9360>    CurStyleSheet = GetDocInfo$(3)
  465.  
  466. <:#240,9360>    IF CurDocName <<<;> "(Untitled)" OR CurStyleSheet <<<;> "<:f160,2Tms Rmn,0,0,255>_CALMON.STY<:f>"
  467.  
  468. <:#240,9360>        Message("Click on File/New and choose _calmon.sty with contents to run this macro.")  
  469.  
  470. <:#240,9360>        EXIT FUNCTION
  471.  
  472. <:#240,9360>    ENDIF
  473.  
  474. <:#240,9360>ENDIF
  475.  
  476. @Remark@<:#240,9360>'Fill Edit boxes with current Month and Year.
  477.  
  478. <:#240,9360>FillEdit(9500,StrField$(FormatDate$(Now(),"c"),2." "))
  479.  
  480. <:#240,9360>FillEdit(9501,StrField$(FormatDate$(Now(),"c"),3." "))
  481.  
  482. <:#240,9360>FillEdit(9500,"January")
  483.  
  484. <:#240,9360>FillEdit(9500,"February")
  485.  
  486. <:#240,9360>FillEdit(9500,"March")
  487.  
  488. <:#240,9360>FillEdit(9500,"April")
  489.  
  490. <:#240,9360>FillEdit(9500,"May")
  491.  
  492. <:#240,9360>FillEdit(9500,"June")
  493.  
  494. <:#240,9360>FillEdit(9500,"July")
  495.  
  496. <:#240,9360>FillEdit(9500,"August")
  497.  
  498. <:#240,9360>FillEdit(9500,"September")
  499.  
  500. <:#240,9360>FillEdit(9500,"October")
  501.  
  502. <:#240,9360>FillEdit(9500,"November")
  503.  
  504. <:#240,9360>FillEdit(9500,"December")
  505.  
  506. <:#240,9360>FillEdit(9501,"1980")
  507.  
  508. <:#240,9360>FillEdit(9501,"1981")
  509.  
  510. <:#240,9360>FillEdit(9501,"1982")
  511.  
  512. <:#240,9360>FillEdit(9501,"1983")
  513.  
  514. <:#240,9360>FillEdit(9501,"1984")
  515.  
  516. <:#240,9360>FillEdit(9501,"1985")
  517.  
  518. <:#240,9360>FillEdit(9501,"1986")
  519.  
  520. <:#240,9360>FillEdit(9501,"1987")
  521.  
  522. <:#240,9360>FillEdit(9501,"1988")
  523.  
  524. <:#240,9360>FillEdit(9501,"1989")
  525.  
  526. <:#240,9360>FillEdit(9501,"1990")
  527.  
  528. <:#240,9360>FillEdit(9501,"1991")
  529.  
  530. <:#240,9360>FillEdit(9501,"1992")
  531.  
  532. <:#240,9360>FillEdit(9501,"1993")
  533.  
  534. <:#240,9360>FillEdit(9501,"1994")
  535.  
  536. <:#240,9360>FillEdit(9501,"1995")
  537.  
  538. <:#240,9360>FillEdit(9501,"1996")
  539.  
  540. <:#240,9360>FillEdit(9501,"1997")
  541.  
  542. <:#240,9360>FillEdit(9501,"1998")
  543.  
  544. <:#240,9360>FillEdit(9501,"1999")
  545.  
  546. <:#240,9360>LayoutMode()
  547.  
  548. <:#240,9360>FullPageView()
  549.  
  550. <:#240,9360>TryAgain:
  551.  
  552. @Remark@<:#240,9360>'Call Dialog box for data entry and get data from edit boxes.
  553.  
  554. <:#240,9360>Stat1=DialogBox("." "Heymon")
  555.  
  556. <:#240,9360>Month1=GetDialogField$(9500)
  557.  
  558. <:#240,9360>Year1=GetDialogField$(9501)
  559.  
  560. @Remark@<:#240,9360>'Check for Cancel.
  561.  
  562. <:#240,9360>IF Stat1=0
  563.  
  564. <:#240,9360>    EXIT FUNCTION
  565.  
  566. <:#240,9360>ENDIF
  567.  
  568. @Remark@<:#240,9360>'Check for error in entry.
  569.  
  570. <:#240,9360>IF Year1 << 1980 OR Year1 <;> 1999
  571.  
  572. <:#240,9360>    Message("Year must be in the range 1980 to 1999.")
  573.  
  574. <:#240,9360>    FillEdit(9500,Month1)
  575.  
  576. <:#240,9360>    FillEdit(9501,Year1)
  577.  
  578. <:#240,9360>    GOTO TryAgain
  579.  
  580. <:#240,9360>ENDIF
  581.  
  582. <:#240,9360>ChkLen = LEN(Year1)
  583.  
  584. <:#240,9360>IF ChkLen<<<;>4
  585.  
  586. <:#240,9360>    Message("Year must be in the format, YYYY (Ex. '1991')")
  587.  
  588. <:#240,9360>    FillEdit(9500,Month1)
  589.  
  590. <:#240,9360>    FillEdit(9501,Year1)
  591.  
  592. <:#240,9360>    GOTO TryAgain
  593.  
  594. <:#240,9360>'ELSEIF Year1<<1980 OR Year1<;>1999
  595.  
  596. <:#240,9360>    Message("Year must be in a range from 1980 to 1999.")
  597.  
  598. <:#240,9360>    FillEdit(9500,Month1)
  599.  
  600. <:#240,9360>    FillEdit(9501,Year1)
  601.  
  602. <:#240,9360>    GOTO TryAgain
  603.  
  604. <:#240,9360>ENDIF
  605.  
  606. @Remark@<:#240,9360>'Convert month to lower case and process.
  607.  
  608. <:#240,9360>LMonth=LCase$(Month1)
  609.  
  610. <:#240,9360>IF LMonth= "january" 
  611.  
  612. <:#240,9360>    NMonth="01/01/"
  613.  
  614. <:#240,9360>    LastDay=31
  615.  
  616. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  617.  
  618. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  619.  
  620. <:#240,9360>ELSEIF LMonth= "february"  
  621.  
  622. <:#240,9360>    NMonth="02/01/"
  623.  
  624. <:#240,9360>    LastDay=CheckLeap(Month1,Year1,NMonth)
  625.  
  626. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  627.  
  628. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  629.  
  630. <:#240,9360>ELSEIF LMonth= "march"
  631.  
  632. <:#240,9360>    NMonth="03/01/"
  633.  
  634. <:#240,9360>    LastDay=31
  635.  
  636. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  637.  
  638. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  639.  
  640. <:#240,9360>ELSEIF LMonth= "april"  
  641.  
  642. <:#240,9360>    NMonth="04/01/"
  643.  
  644. <:#240,9360>    LastDay=30
  645.  
  646. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  647.  
  648. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  649.  
  650. <:#240,9360>ELSEIF LMonth= "may"  
  651.  
  652. <:#240,9360>    NMonth="05/01/"
  653.  
  654. <:#240,9360>    LastDay=31
  655.  
  656. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  657.  
  658. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  659.  
  660. <:#240,9360>ELSEIF LMonth= "june"  
  661.  
  662. <:#240,9360>    NMonth="06/01/"
  663.  
  664. <:#240,9360>    LastDay=30
  665.  
  666. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  667.  
  668. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  669.  
  670. <:#240,9360>ELSEIF LMonth= "july"
  671.  
  672. <:#240,9360>    NMonth="07/01/"
  673.  
  674. <:#240,9360>    LastDay=31
  675.  
  676. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  677.  
  678. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  679.  
  680. <:#240,9360>ELSEIF LMonth= "august"  
  681.  
  682. <:#240,9360>    NMonth="08/01/"
  683.  
  684. <:#240,9360>    LastDay=31
  685.  
  686. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  687.  
  688. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  689.  
  690. <:#240,9360>ELSEIF LMonth= "september"  
  691.  
  692. <:#240,9360>    NMonth="09/01/"
  693.  
  694. <:#240,9360>    LastDay=30
  695.  
  696. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  697.  
  698. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  699.  
  700. <:#240,9360>ELSEIF LMonth= "october"  
  701.  
  702. <:#240,9360>    NMonth="10/01/"
  703.  
  704. <:#240,9360>    LastDay=31
  705.  
  706. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  707.  
  708. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  709.  
  710. <:#240,9360>ELSEIF LMonth= "november"  
  711.  
  712. <:#240,9360>    NMonth="11/01/"
  713.  
  714. <:#240,9360>    LastDay=30
  715.  
  716. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  717.  
  718. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  719.  
  720. <:#240,9360>ELSEIF LMonth= "december"  
  721.  
  722. <:#240,9360>    NMonth="12/01/"
  723.  
  724. <:#240,9360>    LastDay=31
  725.  
  726. <:#240,9360>    FirstDayWeek=BuildDate(Month1,Year1,NMonth)
  727.  
  728. <:#240,9360>    FillCalendar(FirstDayWeek,LastDay)
  729.  
  730. @Remark@<:#240,9360>'Check for error in Month entry
  731.  
  732. <:#240,9360>ELSE 
  733.  
  734. <:#240,9360>    Message ("This is not a valid month.  Please try again.")
  735.  
  736. <:#240,9360>    FillEdit(9500,Month1)
  737.  
  738. <:#240,9360>    FillEdit(9501,Year1)
  739.  
  740. <:#240,9360>    GOTO TryAgain
  741.  
  742. <:#240,9360>ENDIF
  743.  
  744. <:#240,9360>
  745.  
  746. <:#240,9360>END FUNCTION
  747.  
  748. <:#240,9360>
  749.  
  750. <:#240,9360>Function BuildDate(Month1,Year1,NMonth)
  751.  
  752. <:#240,9360>DEFSTR CDate
  753.  
  754. <:#240,9360>DEFSTR NDate
  755.  
  756. <:#240,9360>DEFSTR NDays
  757.  
  758. <:#240,9360>DEFSTR WDate
  759.  
  760. <:#240,9360>DEFSTR DateRef
  761.  
  762. <:#240,9360>DEFSTR TYear
  763.  
  764. @Remark@<:#240,9360>'Extract last two digits of date for processing.
  765.  
  766. <:#240,9360>TYear=Mid$(Year1,3,2)
  767.  
  768. <:#240,9360>CDate=StrCat$(NMonth,TYear) 
  769.  
  770. <:#240,9360>DateRef="01/01/90"
  771.  
  772. <:#240,9360>NDays=DateDiff(CDate,DateRef)
  773.  
  774. <:#240,9360>NDate=NDays*86400+631224000
  775.  
  776. <:#240,9360>WDate=FormatDate$(NDate,"f")
  777.  
  778. <:#240,9360>BuildDate=StrField$(WDate,1," ")
  779.  
  780. <:#240,9360>Type("<[>CtrlHome]{Year1}<[>Tab]{Month1}<[>Tab]{Year1}")
  781.  
  782. <:#240,9360>END FUNCTION
  783.  
  784. <:#240,9360>
  785.  
  786. <:#240,9360>FUNCTION FillCalendar(FirstDayWeek,LastDay)
  787.  
  788. <:#240,9360>DEFSTR DayNum
  789.  
  790. <:#240,9360>DEFSTR Column
  791.  
  792. <:#240,9360>DEFSTR Row
  793.  
  794. <:#240,9360>DEFSTR Row2
  795.  
  796. <:#240,9360>DEFSTR Row3
  797.  
  798. <:#240,9360>DEFSTR R1
  799.  
  800. <:#240,9360>DEFSTR R2
  801.  
  802. <:#240,9360>DEFSTR R3
  803.  
  804. <:#240,9360>DEFSTR R4
  805.  
  806. <:#240,9360>Type( "<[>CTRLHome]<[>Down]<[>Down]<[>Right]" )
  807.  
  808. <:#240,9360>DayNum=1
  809.  
  810. <:#240,9360>IF FirstDayWeek="Sunday"
  811.  
  812. <:#240,9360>    FOR R1=1 TO 6
  813.  
  814. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  815.  
  816. <:#240,9360>        DayNum=DayNum + 1
  817.  
  818. <:#240,9360>    NEXT
  819.  
  820. <:#240,9360>ELSEIF FirstDayWeek="Monday"
  821.  
  822. <:#240,9360>    Type("<[>Right]<[>Right]")
  823.  
  824. <:#240,9360>    FOR R1=1 TO 5
  825.  
  826. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  827.  
  828. <:#240,9360>        DayNum=DayNum + 1
  829.  
  830. <:#240,9360>    NEXT
  831.  
  832. <:#240,9360>ELSEIF FirstDayWeek="Tuesday"
  833.  
  834. <:#240,9360>    Type("<[>Right]<[>Right]<[>Right]<[>Right]")
  835.  
  836. <:#240,9360>    FOR R2=1 TO 4
  837.  
  838. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  839.  
  840. <:#240,9360>        DayNum=DayNum + 1
  841.  
  842. <:#240,9360>    NEXT
  843.  
  844. <:#240,9360>ELSEIF FirstDayWeek="Wednesday"
  845.  
  846. <:#240,9360>    Type("<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]")
  847.  
  848. <:#240,9360>    FOR R3=1 TO 3
  849.  
  850. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  851.  
  852. <:#240,9360>        DayNum=DayNum + 1
  853.  
  854. <:#240,9360>    NEXT
  855.  
  856. <:#240,9360>ELSEIF FirstDayWeek="Thursday"
  857.  
  858. <:#240,9360>    Type("<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]")
  859.  
  860. <:#240,9360>    FOR R4=1 TO 2
  861.  
  862. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  863.  
  864. <:#240,9360>        DayNum=DayNum + 1
  865.  
  866. <:#240,9360>    NEXT
  867.  
  868. <:#240,9360>ELSEIF FirstDayWeek="Friday"
  869.  
  870. <:#240,9360>    Type("<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]")
  871.  
  872. <:#240,9360>    Type("{DayNum}<[>Right]<[>Right]")
  873.  
  874. <:#240,9360>    DayNum=DayNum + 1
  875.  
  876. <:#240,9360>ELSEIF FirstDayWeek="Saturday"
  877.  
  878. <:#240,9360>    Type("<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]<[>Right]")
  879.  
  880. <:#240,9360>ENDIF
  881.  
  882. <:#240,9360>Type("{DayNum}<[>Right]<[>Down]<[>Right]")
  883.  
  884. <:#240,9360>DayNum=DayNum + 1
  885.  
  886. <:#240,9360>FOR Column=2 <++>to<-+> 5
  887.  
  888. <:#240,9360>    FOR Row= 1 <++>to<-+> 6
  889.  
  890. <:#240,9360>        Type("{DayNum}<[>Right]<[>Right]")
  891.  
  892. <:#240,9360>        DayNum=DayNum + 1
  893.  
  894. <:#240,9360>        IF DayNum <;> LastDay
  895.  
  896. <:#240,9360>            EXIT FUNCTION
  897.  
  898. <:#240,9360>        ENDIF
  899.  
  900. <:#240,9360>    NEXT 
  901.  
  902. <:#240,9360>    IF Column=5 AND DayNum<<LastDay
  903.  
  904. <:#240,9360>        Singlestep(0)
  905.  
  906. <:#240,9360>        Type("{DayNum}")
  907.  
  908. <:#240,9360>        DayNum=DayNum + 1
  909.  
  910. <:#240,9360>        Type("<[>Right]")
  911.  
  912. <:#240,9360>        AdjustTable()
  913.  
  914. <:#240,9360>        FOR Row2=1 TO 7
  915.  
  916. <:#240,9360>            ConnectCells()
  917.  
  918. <:#240,9360>            FOR Row3=1 TO 2
  919.  
  920. <:#240,9360>                TurnOn=TopSide
  921.  
  922. <:#240,9360>                TurnOff=0
  923.  
  924. <:#240,9360>                StaySame=CellShade + Outline
  925.  
  926. <:#240,9360>                TableLines(TurnOn, TurnOff, StaySame, Hairline, CellShade)
  927.  
  928. <:#240,9360>                Type("<[>CTRLRight]")
  929.  
  930. <:#240,9360>            NEXT
  931.  
  932. <:#240,9360>            Type("<[>CTRLLeft]")
  933.  
  934. <:#240,9360>            Type("{DayNum}")
  935.  
  936. <:#240,9360>            DayNum=DayNum + 1
  937.  
  938. <:#240,9360>            Type("<[>CTRLRight]")
  939.  
  940. <:#240,9360>            IF DayNum <;> LastDay
  941.  
  942. <:#240,9360>                BREAK
  943.  
  944. <:#240,9360>            ENDIF
  945.  
  946. <:#240,9360>        NEXT
  947.  
  948. <:#240,9360>    ELSEIF DayNum = LastDay
  949.  
  950. <:#240,9360>        Type("{DayNum}<[>CtrlHome]")
  951.  
  952. <:#240,9360>        BREAK
  953.  
  954. <:#240,9360>    ELSE
  955.  
  956. <:#240,9360>        Type("{DayNum}<[>Right]<[>Down]<[>Right]")
  957.  
  958. <:#240,9360>    ENDIF
  959.  
  960. <:#240,9360>    DayNum=DayNum + 1
  961.  
  962. <:#240,9360>NEXT
  963.  
  964. <:#240,9360>END FUNCTION
  965.  
  966. <:#240,9360>
  967.  
  968. <:#240,9360>FUNCTION CheckLeap(Month1,Year1,NMonth)
  969.  
  970. <:#240,9360>DEFSTR CDate
  971.  
  972. <:#240,9360>DEFSTR NDate
  973.  
  974. <:#240,9360>DEFSTR NDays
  975.  
  976. <:#240,9360>DEFSTR WDate
  977.  
  978. <:#240,9360>DEFSTR DateRef
  979.  
  980. <:#240,9360>DEFSTR TYear
  981.  
  982. <:#240,9360>DEFSTR LNDate
  983.  
  984. <:#240,9360>DEFSTR LeapDate
  985.  
  986. @Remark@<:#240,9360>'Extract last two digits of date for processing.
  987.  
  988. <:#240,9360>TYear=Mid$(Year1,3,2)
  989.  
  990. <:#240,9360>CDate=StrCat$(NMonth,TYear) 
  991.  
  992. <:#240,9360>DateRef="01/01/90"
  993.  
  994. <:#240,9360>NDays=DateDiff(CDate,DateRef)
  995.  
  996. <:#240,9360>NDate=NDays*86400+631224000
  997.  
  998. <:#240,9360>LNDate=NDate +  2419200
  999.  
  1000. <:#240,9360>LeapDate=FormatDate$(LNDate,"a")
  1001.  
  1002. <:#240,9360>LeapNum=StrField$(LeapDate,1,"/")
  1003.  
  1004. <:#240,9360>IF LeapNum=3
  1005.  
  1006. <:#240,9360>    CheckLeap=28
  1007.  
  1008. <:#240,9360>ELSE 
  1009.  
  1010. <:#240,9360>    CheckLeap=29
  1011.  
  1012. <:#240,9360>ENDIF
  1013.  
  1014. <:#240,9360>END FUNCTION
  1015.  
  1016. <:#240,9360>
  1017.  
  1018. <:#240,9360>FUNCTION AdjustTable()
  1019.  
  1020. <:#240,9360>SizeColumnRow(-32768 -32768 936 -32768  )
  1021.  
  1022. <:#240,9360>Type( "<[>Up]" )
  1023.  
  1024. <:#240,9360>SizeColumnRow(-32768 -32768 936 -32768  )
  1025.  
  1026. <:#240,9360>Type( "<[>Down]" )
  1027.  
  1028. <:#240,9360>'ConnectCells( )
  1029.  
  1030. <:#240,9360>'Type( "<[>CTRLRight]<[>CTRLRight]" )
  1031.  
  1032. <:#240,9360>'ConnectCells( )
  1033.  
  1034. <:#240,9360>'Type("<[>CTRLLeft]")
  1035.  
  1036. <:#240,9360>'Type("<[>CTRLLeft]<[>CTRLLeft]<[>CTRLLeft]")
  1037.  
  1038. <:#240,9360>END FUNCTION
  1039.  
  1040. <:#240,9360>
  1041.  
  1042. @Remark@<:#240,9360>'Dialog Box Section
  1043.  
  1044. <:#240,9360>DIALOG Heymon
  1045.  
  1046. <:#240,9360>-2134376448 6 93 58 136 50 "" "" "Monthly Calendar"
  1047.  
  1048. <:#240,9360>FONT 8 "Helv"
  1049.  
  1050. <:#240,9360>4 6 27 10 1000 1342177280 "static" "Month :" 0 
  1051.  
  1052. <:#240,9360>8 21 23 10 1001 1342177280 "static" "Year :" 0 
  1053.  
  1054. <:#240,9360>31 4 52 40 9500 1344339979 "combobox" "" 0 
  1055.  
  1056. <:#240,9360>31 19 52 40 9501 1344339979 "combobox" "" 0 
  1057.  
  1058. <:#240,9360>91 3 40 14 1 1342242817 "button" "OK" 0 
  1059.  
  1060. <:#240,9360>91 19 40 14 2 1342242816 "button" "Cancel" 0 
  1061.  
  1062. <:#240,9360>END DIALOG
  1063.  
  1064. >
  1065.  
  1066. [Embedded]
  1067. 00017966
  1068. >
  1069. [macsum] 6
  1070. AutoCal 0 0 13 4
  1071. BuildDate 4864 3 7 177
  1072. FillCalendar 5339 2 13 195
  1073. CheckLeap 8360 3 10 286
  1074. AdjustTable 8981 0 1 311
  1075. Heymon 9150 0 -1 324
  1076. [macse]
  1077. 14 AutoCal
  1078. 0 4 0
  1079. 17 3
  1080. 29 1 Month1
  1081. 17 4
  1082. 29 2 Year1
  1083. 17 5
  1084. 29 3 LMonth
  1085. 17 6
  1086. 29 4 NMonth
  1087. 17 7
  1088. 29 5 Stat1
  1089. 17 8
  1090. 29 6 FirstDayWeek
  1091. 17 9
  1092. 29 7 LastDay
  1093. 17 10
  1094. 29 8 ChkLen
  1095. 17 11
  1096. 29 9 CurStyleSheet
  1097. 17 12
  1098. 29 10 CurDocName
  1099. 17 13
  1100. 29 11 TotalWindows
  1101. 17 15
  1102. 17 16
  1103. 17 17
  1104. 17 18
  1105. 17 19
  1106. 0 4 0
  1107. 17 20
  1108. 29 12 NW
  1109. 0 1317
  1110. 13
  1111. 8 12
  1112. 17 21
  1113. 6 12
  1114. 5 0
  1115. 18 0
  1116. 11 00000764
  1117. 17 23
  1118. 0 1050
  1119. 13
  1120. 8 11
  1121. 17 24
  1122. 6 11
  1123. 5 0
  1124. 18 0
  1125. 11 00000532
  1126. 17 25
  1127. 0 3 "Click on File/New and choose _calmon.sty with contents to run this macro."
  1128. 6 0
  1129. 15
  1130. 9
  1131. 17 29
  1132. 0 279 1
  1133. 13
  1134. 8 10
  1135. 17 30
  1136. 0 279 3
  1137. 13
  1138. 8 9
  1139. 17 31
  1140. 6 10
  1141. 7 "(Untitled)"
  1142. 18 1
  1143. 6 9
  1144. 7 "_CALMON.STY"
  1145. 18 1
  1146. 1 2
  1147. 11 00000764
  1148. 17 32
  1149. 0 3 "Click on File/New and choose _calmon.sty with contents to run this macro."
  1150. 6 0
  1151. 15
  1152. 9
  1153. 17 37
  1154. 0 772
  1155. 13
  1156. 0 770 [X] "c"
  1157. 13
  1158. 0 20 [X] 2. " "
  1159. 13
  1160. 0 31 9500 [X]
  1161. 17 38
  1162. 0 772
  1163. 13
  1164. 0 770 [X] "c"
  1165. 13
  1166. 0 20 [X] 3. " "
  1167. 13
  1168. 0 31 9501 [X]
  1169. 17 39
  1170. 0 31 9500 "January"
  1171. 17 40
  1172. 0 31 9500 "February"
  1173. 17 41
  1174. 0 31 9500 "March"
  1175. 17 42
  1176. 0 31 9500 "April"
  1177. 17 43
  1178. 0 31 9500 "May"
  1179. 17 44
  1180. 0 31 9500 "June"
  1181. 17 45
  1182. 0 31 9500 "July"
  1183. 17 46
  1184. 0 31 9500 "August"
  1185. 17 47
  1186. 0 31 9500 "September"
  1187. 17 48
  1188. 0 31 9500 "October"
  1189. 17 49
  1190. 0 31 9500 "November"
  1191. 17 50
  1192. 0 31 9500 "December"
  1193. 17 51
  1194. 0 31 9501 "1980"
  1195. 17 52
  1196. 0 31 9501 "1981"
  1197. 17 53
  1198. 0 31 9501 "1982"
  1199. 17 54
  1200. 0 31 9501 "1983"
  1201. 17 55
  1202. 0 31 9501 "1984"
  1203. 17 56
  1204. 0 31 9501 "1985"
  1205. 17 57
  1206. 0 31 9501 "1986"
  1207. 17 58
  1208. 0 31 9501 "1987"
  1209. 17 59
  1210. 0 31 9501 "1988"
  1211. 17 60
  1212. 0 31 9501 "1989"
  1213. 17 61
  1214. 0 31 9501 "1990"
  1215. 17 62
  1216. 0 31 9501 "1991"
  1217. 17 63
  1218. 0 31 9501 "1992"
  1219. 17 64
  1220. 0 31 9501 "1993"
  1221. 17 65
  1222. 0 31 9501 "1994"
  1223. 17 66
  1224. 0 31 9501 "1995"
  1225. 17 67
  1226. 0 31 9501 "1996"
  1227. 17 68
  1228. 0 31 9501 "1997"
  1229. 17 69
  1230. 0 31 9501 "1998"
  1231. 17 70
  1232. 0 31 9501 "1999"
  1233. 17 71
  1234. 2 210 1
  1235. 17 72
  1236. 2 201 1
  1237. 17 75
  1238. 0 26 "." "Heymon"
  1239. 13
  1240. 8 5
  1241. 17 76
  1242. 0 27 9500
  1243. 13
  1244. 8 1
  1245. 17 77
  1246. 0 27 9501
  1247. 13
  1248. 8 2
  1249. 17 79
  1250. 6 5
  1251. 5 0
  1252. 18 0
  1253. 11 00001905
  1254. 6 0
  1255. 15
  1256. 9
  1257. 17 83
  1258. 6 2
  1259. 5 1980
  1260. 18 5
  1261. 6 2
  1262. 5 1999
  1263. 18 3
  1264. 1 2
  1265. 11 00002090
  1266. 17 84
  1267. 0 3 "Year must be in the range 1980 to 1999."
  1268. 17 85
  1269. 0 31 9500 "{1}"
  1270. 17 86
  1271. 0 31 9501 "{2}"
  1272. 17 87
  1273. 10 00001768
  1274. 17 89
  1275. 0 14 "{2}"
  1276. 13
  1277. 8 8
  1278. 17 90
  1279. 6 8
  1280. 5 4
  1281. 18 1
  1282. 11 00002407
  1283. 17 91
  1284. 0 3 "Year must be in the format, YYYY (Ex. '1991')"
  1285. 17 92
  1286. 0 31 9500 "{1}"
  1287. 17 93
  1288. 0 31 9501 "{2}"
  1289. 17 94
  1290. 10 00001768
  1291. 17 96
  1292. 0 3 "Year must be in a range from 1980 to 1999."
  1293. 17 97
  1294. 0 31 9500 "{1}"
  1295. 17 98
  1296. 0 31 9501 "{2}"
  1297. 17 99
  1298. 10 00001768
  1299. 17 102
  1300. 0 17 "{1}"
  1301. 13
  1302. 8 3
  1303. 17 103
  1304. 6 3
  1305. 7 "january"
  1306. 18 0
  1307. 11 00002624
  1308. 17 104
  1309. 7 "01/01/"
  1310. 8 4
  1311. 17 105
  1312. 5 31
  1313. 8 7
  1314. 17 106
  1315. 16 BuildDate "{1}" "{2}" "{4}"
  1316. 13
  1317. 8 6
  1318. 17 107
  1319. 16 FillCalendar "{6}" "{7}"
  1320. 10 00004844
  1321. 17 108
  1322. 6 3
  1323. 7 "february"
  1324. 18 0
  1325. 11 00002843
  1326. 17 109
  1327. 7 "02/01/"
  1328. 8 4
  1329. 17 110
  1330. 16 CheckLeap "{1}" "{2}" "{4}"
  1331. 13
  1332. 8 7
  1333. 17 111
  1334. 16 BuildDate "{1}" "{2}" "{4}"
  1335. 13
  1336. 8 6
  1337. 17 112
  1338. 16 FillCalendar "{6}" "{7}"
  1339. 10 00004844
  1340. 17 113
  1341. 6 3
  1342. 7 "march"
  1343. 18 0
  1344. 11 00003029
  1345. 17 114
  1346. 7 "03/01/"
  1347. 8 4
  1348. 17 115
  1349. 5 31
  1350. 8 7
  1351. 17 116
  1352. 16 BuildDate "{1}" "{2}" "{4}"
  1353. 13
  1354. 8 6
  1355. 17 117
  1356. 16 FillCalendar "{6}" "{7}"
  1357. 10 00004844
  1358. 17 118
  1359. 6 3
  1360. 7 "april"
  1361. 18 0
  1362. 11 00003215
  1363. 17 119
  1364. 7 "04/01/"
  1365. 8 4
  1366. 17 120
  1367. 5 30
  1368. 8 7
  1369. 17 121
  1370. 16 BuildDate "{1}" "{2}" "{4}"
  1371. 13
  1372. 8 6
  1373. 17 122
  1374. 16 FillCalendar "{6}" "{7}"
  1375. 10 00004844
  1376. 17 123
  1377. 6 3
  1378. 7 "may"
  1379. 18 0
  1380. 11 00003399
  1381. 17 124
  1382. 7 "05/01/"
  1383. 8 4
  1384. 17 125
  1385. 5 31
  1386. 8 7
  1387. 17 126
  1388. 16 BuildDate "{1}" "{2}" "{4}"
  1389. 13
  1390. 8 6
  1391. 17 127
  1392. 16 FillCalendar "{6}" "{7}"
  1393. 10 00004844
  1394. 17 128
  1395. 6 3
  1396. 7 "june"
  1397. 18 0
  1398. 11 00003584
  1399. 17 129
  1400. 7 "06/01/"
  1401. 8 4
  1402. 17 130
  1403. 5 30
  1404. 8 7
  1405. 17 131
  1406. 16 BuildDate "{1}" "{2}" "{4}"
  1407. 13
  1408. 8 6
  1409. 17 132
  1410. 16 FillCalendar "{6}" "{7}"
  1411. 10 00004844
  1412. 17 133
  1413. 6 3
  1414. 7 "july"
  1415. 18 0
  1416. 11 00003769
  1417. 17 134
  1418. 7 "07/01/"
  1419. 8 4
  1420. 17 135
  1421. 5 31
  1422. 8 7
  1423. 17 136
  1424. 16 BuildDate "{1}" "{2}" "{4}"
  1425. 13
  1426. 8 6
  1427. 17 137
  1428. 16 FillCalendar "{6}" "{7}"
  1429. 10 00004844
  1430. 17 138
  1431. 6 3
  1432. 7 "august"
  1433. 18 0
  1434. 11 00003956
  1435. 17 139
  1436. 7 "08/01/"
  1437. 8 4
  1438. 17 140
  1439. 5 31
  1440. 8 7
  1441. 17 141
  1442. 16 BuildDate "{1}" "{2}" "{4}"
  1443. 13
  1444. 8 6
  1445. 17 142
  1446. 16 FillCalendar "{6}" "{7}"
  1447. 10 00004844
  1448. 17 143
  1449. 6 3
  1450. 7 "september"
  1451. 18 0
  1452. 11 00004146
  1453. 17 144
  1454. 7 "09/01/"
  1455. 8 4
  1456. 17 145
  1457. 5 30
  1458. 8 7
  1459. 17 146
  1460. 16 BuildDate "{1}" "{2}" "{4}"
  1461. 13
  1462. 8 6
  1463. 17 147
  1464. 16 FillCalendar "{6}" "{7}"
  1465. 10 00004844
  1466. 17 148
  1467. 6 3
  1468. 7 "october"
  1469. 18 0
  1470. 11 00004334
  1471. 17 149
  1472. 7 "10/01/"
  1473. 8 4
  1474. 17 150
  1475. 5 31
  1476. 8 7
  1477. 17 151
  1478. 16 BuildDate "{1}" "{2}" "{4}"
  1479. 13
  1480. 8 6
  1481. 17 152
  1482. 16 FillCalendar "{6}" "{7}"
  1483. 10 00004844
  1484. 17 153
  1485. 6 3
  1486. 7 "november"
  1487. 18 0
  1488. 11 00004523
  1489. 17 154
  1490. 7 "11/01/"
  1491. 8 4
  1492. 17 155
  1493. 5 30
  1494. 8 7
  1495. 17 156
  1496. 16 BuildDate "{1}" "{2}" "{4}"
  1497. 13
  1498. 8 6
  1499. 17 157
  1500. 16 FillCalendar "{6}" "{7}"
  1501. 10 00004844
  1502. 17 158
  1503. 6 3
  1504. 7 "december"
  1505. 18 0
  1506. 11 00004712
  1507. 17 159
  1508. 7 "12/01/"
  1509. 8 4
  1510. 17 160
  1511. 5 31
  1512. 8 7
  1513. 17 161
  1514. 16 BuildDate "{1}" "{2}" "{4}"
  1515. 13
  1516. 8 6
  1517. 17 162
  1518. 16 FillCalendar "{6}" "{7}"
  1519. 10 00004844
  1520. 17 165
  1521. 0 3 "This is not a valid month.  Please try again."
  1522. 17 166
  1523. 0 31 9500 "{1}"
  1524. 17 167
  1525. 0 31 9501 "{2}"
  1526. 17 168
  1527. 10 00001768
  1528. 6 0
  1529. 15
  1530. 17 171
  1531. 9
  1532. 14 BuildDate
  1533. 29 0 Month1
  1534. 29 1 Year1
  1535. 29 2 NMonth
  1536. 29 3 BuildDate
  1537. 17 1
  1538. 29 4 CDate
  1539. 17 2
  1540. 29 5 NDate
  1541. 17 3
  1542. 29 6 NDays
  1543. 17 4
  1544. 29 7 WDate
  1545. 17 5
  1546. 29 8 DateRef
  1547. 17 6
  1548. 29 9 TYear
  1549. 17 8
  1550. 0 15 "{1}" 3 2
  1551. 13
  1552. 8 9
  1553. 17 9
  1554. 0 16 "{2}" "{9}"
  1555. 13
  1556. 8 4
  1557. 17 10
  1558. 7 "01/01/90"
  1559. 8 8
  1560. 17 11
  1561. 0 769 "{4}" "{8}"
  1562. 13
  1563. 8 6
  1564. 17 12
  1565. 6 6
  1566. 5 86400
  1567. 4 0
  1568. 5 631224000
  1569. 3 0
  1570. 8 5
  1571. 17 13
  1572. 0 770 "{5}" "f"
  1573. 13
  1574. 8 7
  1575. 17 14
  1576. 0 20 "{7}" 1 " "
  1577. 13
  1578. 8 3
  1579. 17 15
  1580. 0 6 "[16420]{1}[9]{0}[9]{1}"
  1581. 6 3
  1582. 15
  1583. 17 16
  1584. 9
  1585. 14 FillCalendar
  1586. 29 0 FirstDayWeek
  1587. 29 1 LastDay
  1588. 29 2 FillCalendar
  1589. 17 1
  1590. 29 3 DayNum
  1591. 17 2
  1592. 29 4 Column
  1593. 17 3
  1594. 29 5 Row
  1595. 17 4
  1596. 29 6 Row2
  1597. 17 5
  1598. 29 7 Row3
  1599. 17 6
  1600. 29 8 R1
  1601. 17 7
  1602. 29 9 R2
  1603. 17 8
  1604. 29 10 R3
  1605. 17 9
  1606. 29 11 R4
  1607. 17 10
  1608. 0 6 "[16420][40][40][39]"
  1609. 17 11
  1610. 5 1
  1611. 8 3
  1612. 17 12
  1613. 6 0
  1614. 7 "Sunday"
  1615. 18 0
  1616. 11 00000484
  1617. 5 1
  1618. 8 8
  1619. 17 13
  1620. 5 6
  1621. 6 8
  1622. 18 2
  1623. 12 00000405
  1624. 10 00000471
  1625. 5 1
  1626. 6 8
  1627. 3 0
  1628. 8 8
  1629. 10 00000323
  1630. 17 14
  1631. 0 6 "{3}[39][39]"
  1632. 17 15
  1633. 6 3
  1634. 5 1
  1635. 3 0
  1636. 8 3
  1637. 10 00000372
  1638. 10 00001766
  1639. 17 17
  1640. 6 0
  1641. 7 "Monday"
  1642. 18 0
  1643. 11 00000721
  1644. 17 18
  1645. 0 6 "[39][39]"
  1646. 5 1
  1647. 8 8
  1648. 17 19
  1649. 5 5
  1650. 6 8
  1651. 18 2
  1652. 12 00000642
  1653. 10 00000708
  1654. 5 1
  1655. 6 8
  1656. 3 0
  1657. 8 8
  1658. 10 00000560
  1659. 17 20
  1660. 0 6 "{3}[39][39]"
  1661. 17 21
  1662. 6 3
  1663. 5 1
  1664. 3 0
  1665. 8 3
  1666. 10 00000609
  1667. 10 00001766
  1668. 17 23
  1669. 6 0
  1670. 7 "Tuesday"
  1671. 18 0
  1672. 11 00000967
  1673. 17 24
  1674. 0 6 "[39][39][39][39]"
  1675. 5 1
  1676. 8 9
  1677. 17 25
  1678. 5 4
  1679. 6 9
  1680. 18 2
  1681. 12 00000888
  1682. 10 00000954
  1683. 5 1
  1684. 6 9
  1685. 3 0
  1686. 8 9
  1687. 10 00000806
  1688. 17 26
  1689. 0 6 "{3}[39][39]"
  1690. 17 27
  1691. 6 3
  1692. 5 1
  1693. 3 0
  1694. 8 3
  1695. 10 00000855
  1696. 10 00001766
  1697. 17 29
  1698. 6 0
  1699. 7 "Wednesday"
  1700. 18 0
  1701. 11 00001227
  1702. 17 30
  1703. 0 6 "[39][39][39][39][39][39]"
  1704. 5 1
  1705. 8 10
  1706. 17 31
  1707. 5 3
  1708. 6 10
  1709. 18 2
  1710. 12 00001148
  1711. 10 00001214
  1712. 5 1
  1713. 6 10
  1714. 3 0
  1715. 8 10
  1716. 10 00001063
  1717. 17 32
  1718. 0 6 "{3}[39][39]"
  1719. 17 33
  1720. 6 3
  1721. 5 1
  1722. 3 0
  1723. 8 3
  1724. 10 00001113
  1725. 10 00001766
  1726. 17 35
  1727. 6 0
  1728. 7 "Thursday"
  1729. 18 0
  1730. 11 00001494
  1731. 17 36
  1732. 0 6 "[39][39][39][39][39][39][39][39]"
  1733. 5 1
  1734. 8 11
  1735. 17 37
  1736. 5 2
  1737. 6 11
  1738. 18 2
  1739. 12 00001415
  1740. 10 00001481
  1741. 5 1
  1742. 6 11
  1743. 3 0
  1744. 8 11
  1745. 10 00001330
  1746. 17 38
  1747. 0 6 "{3}[39][39]"
  1748. 17 39
  1749. 6 3
  1750. 5 1
  1751. 3 0
  1752. 8 3
  1753. 10 00001380
  1754. 10 00001766
  1755. 17 41
  1756. 6 0
  1757. 7 "Friday"
  1758. 18 0
  1759. 11 00001658
  1760. 17 42
  1761. 0 6 "[39][39][39][39][39][39][39][39][39][39]"
  1762. 17 43
  1763. 0 6 "{3}[39][39]"
  1764. 17 44
  1765. 6 3
  1766. 5 1
  1767. 3 0
  1768. 8 3
  1769. 10 00001766
  1770. 17 45
  1771. 6 0
  1772. 7 "Saturday"
  1773. 18 0
  1774. 11 00001766
  1775. 17 46
  1776. 0 6 "[39][39][39][39][39][39][39][39][39][39][39][39]"
  1777. 17 48
  1778. 0 6 "{3}[39][40][39]"
  1779. 17 49
  1780. 6 3
  1781. 5 1
  1782. 3 0
  1783. 8 3
  1784. 5 2
  1785. 8 4
  1786. 17 50
  1787. 5 5
  1788. 6 4
  1789. 18 2
  1790. 12 00001915
  1791. 10 00003002
  1792. 5 1
  1793. 6 4
  1794. 3 0
  1795. 8 4
  1796. 10 00001833
  1797. 5 1
  1798. 8 5
  1799. 17 51
  1800. 5 6
  1801. 6 5
  1802. 18 2
  1803. 12 00002007
  1804. 10 00002121
  1805. 5 1
  1806. 6 5
  1807. 3 0
  1808. 8 5
  1809. 10 00001925
  1810. 17 52
  1811. 0 6 "{3}[39][39]"
  1812. 17 53
  1813. 6 3
  1814. 5 1
  1815. 3 0
  1816. 8 3
  1817. 17 54
  1818. 6 3
  1819. 6 1
  1820. 18 3
  1821. 11 00002108
  1822. 6 2
  1823. 15
  1824. 9
  1825. 10 00001974
  1826. 17 58
  1827. 6 4
  1828. 5 5
  1829. 18 0
  1830. 6 3
  1831. 6 1
  1832. 18 5
  1833. 1 1
  1834. 11 00002838
  1835. 17 59
  1836. 0 4 0
  1837. 17 60
  1838. 0 6 "{3}"
  1839. 17 61
  1840. 6 3
  1841. 5 1
  1842. 3 0
  1843. 8 3
  1844. 17 62
  1845. 0 6 "[39]"
  1846. 17 63
  1847. 16 AdjustTable
  1848. 5 1
  1849. 8 6
  1850. 17 64
  1851. 5 7
  1852. 6 6
  1853. 18 2
  1854. 12 00002371
  1855. 10 00002825
  1856. 5 1
  1857. 6 6
  1858. 3 0
  1859. 8 6
  1860. 10 00002289
  1861. 17 65
  1862. 2 635 1
  1863. 5 1
  1864. 8 7
  1865. 17 66
  1866. 5 2
  1867. 6 7
  1868. 18 2
  1869. 12 00002479
  1870. 10 00002667
  1871. 5 1
  1872. 6 7
  1873. 3 0
  1874. 8 7
  1875. 10 00002397
  1876. 17 67
  1877. 29 12 TurnOn
  1878. 5 16
  1879. 8 12
  1880. 17 68
  1881. 29 13 TurnOff
  1882. 5 0
  1883. 8 13
  1884. 17 69
  1885. 29 14 StaySame
  1886. 5 64
  1887. 5 2
  1888. 3 0
  1889. 8 14
  1890. 17 70
  1891. 2 632 1 "{12}" "{13}" "{14}" 1 64
  1892. 17 71
  1893. 0 6 "[16423]"
  1894. 10 00002446
  1895. 17 73
  1896. 0 6 "[16421]"
  1897. 17 74
  1898. 0 6 "{3}"
  1899. 17 75
  1900. 6 3
  1901. 5 1
  1902. 3 0
  1903. 8 3
  1904. 17 76
  1905. 0 6 "[16423]"
  1906. 17 77
  1907. 6 3
  1908. 6 1
  1909. 18 3
  1910. 11 00002812
  1911. 17 78
  1912. 10 00002825
  1913. 10 00002338
  1914. 10 00002962
  1915. 17 81
  1916. 6 3
  1917. 6 1
  1918. 18 0
  1919. 11 00002932
  1920. 17 82
  1921. 0 6 "{3}[16420]"
  1922. 17 83
  1923. 10 00003002
  1924. 10 00002962
  1925. 17 85
  1926. 0 6 "{3}[39][40][39]"
  1927. 17 87
  1928. 6 3
  1929. 5 1
  1930. 3 0
  1931. 8 3
  1932. 10 00001882
  1933. 6 2
  1934. 15
  1935. 17 89
  1936. 9
  1937. 14 CheckLeap
  1938. 29 0 Month1
  1939. 29 1 Year1
  1940. 29 2 NMonth
  1941. 29 3 CheckLeap
  1942. 17 1
  1943. 29 4 CDate
  1944. 17 2
  1945. 29 5 NDate
  1946. 17 3
  1947. 29 6 NDays
  1948. 17 4
  1949. 29 7 WDate
  1950. 17 5
  1951. 29 8 DateRef
  1952. 17 6
  1953. 29 9 TYear
  1954. 17 7
  1955. 29 10 LNDate
  1956. 17 8
  1957. 29 11 LeapDate
  1958. 17 10
  1959. 0 15 "{1}" 3 2
  1960. 13
  1961. 8 9
  1962. 17 11
  1963. 0 16 "{2}" "{9}"
  1964. 13
  1965. 8 4
  1966. 17 12
  1967. 7 "01/01/90"
  1968. 8 8
  1969. 17 13
  1970. 0 769 "{4}" "{8}"
  1971. 13
  1972. 8 6
  1973. 17 14
  1974. 6 6
  1975. 5 86400
  1976. 4 0
  1977. 5 631224000
  1978. 3 0
  1979. 8 5
  1980. 17 15
  1981. 6 5
  1982. 5 2419200
  1983. 3 0
  1984. 8 10
  1985. 17 16
  1986. 0 770 "{10}" "a"
  1987. 13
  1988. 8 11
  1989. 17 17
  1990. 29 12 LeapNum
  1991. 0 20 "{11}" 1 "/"
  1992. 13
  1993. 8 12
  1994. 17 18
  1995. 6 12
  1996. 5 3
  1997. 18 0
  1998. 11 00000584
  1999. 17 19
  2000. 5 28
  2001. 8 3
  2002. 10 00000602
  2003. 17 21
  2004. 5 29
  2005. 8 3
  2006. 6 3
  2007. 15
  2008. 17 23
  2009. 9
  2010. 14 AdjustTable
  2011. 29 0 AdjustTable
  2012. 17 1
  2013. 2 634 1 -32768 -32768 936 -32768
  2014. 17 2
  2015. 0 6 "[38]"
  2016. 17 3
  2017. 2 634 1 -32768 -32768 936 -32768
  2018. 17 4
  2019. 0 6 "[40]"
  2020. 6 0
  2021. 15
  2022. 17 10
  2023. 9
  2024. DIALOG Heymon
  2025. -2134376448 6 93 58 136 50 "" "" "Monthly Calendar" 
  2026. FONT 8 "Helv" 
  2027. 4 6 27 10 1000 1342177280 "static" "Month :" 0 
  2028. 8 21 23 10 1001 1342177280 "static" "Year :" 0 
  2029. 31 4 52 40 9500 1344339979 "combobox" "" 0 
  2030. 31 19 52 40 9501 1344339979 "combobox" "" 0 
  2031. 91 3 40 14 1 1342242817 "button" "OK" 0 
  2032. 91 19 40 14 2 1342242816 "button" "Cancel" 0 
  2033. 00017991
  2034.