'ATTENTION : If you change the name of the calendar style sheet, ~calmon2.sty, you must change the blue text on this page to the new name you have chosen.
<:f160,2Tms Rmn,194,0,0>'WARNING : If you modify the contents in ~calmon2.sty, this macro may not function properly!<:f>
FUNCTION AutoCal()
SingleStep(0)
@Remark@'Declaration of Variables
DEFSTR Month1 <:f160,2Tms Rmn,255,0,0>'This variable contains the month direct from the dialog box.<:f>
DEFSTR Year1 <:f160,2Tms Rmn,255,0,0> 'This variable contains the year direct from dialog box (YYYY).<:f>
DEFSTR LMonth <:f160,2Tms Rmn,255,0,0> 'This variable contains the calendar month in lower case.<:f>
DEFSTR NMonth <:f160,2Tms Rmn,255,0,0> 'This variable contains the month and day of Calendar Date (MM/DD/).<:f>
DEFSTR Stat1 <:f160,2Tms Rmn,255,0,0>'This variable checks for Cancel from dialog box.<:f>
DEFSTR FirstDayWeek <:f160,2Tms Rmn,255,0,0> 'This contains the Value of the day of the week the month starts on.<:f>
DEFSTR LastDay <:f160,2Tms Rmn,255,0,0>'This contains the value of the number of days in current month.<:f>
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>
DEFSTR CurStyleSheet <:f160,2Tms Rmn,255,0,0>'This contains the style sheet for the current dicument<:f>
DEFSTR CurDocName <:f160,2Tms Rmn,255,0,0> 'This contains the name of the current document.<:f>
DEFSTR TotalWindows <:f160,2Tms Rmn,255,0,0>This contains the number of MDI windows open when starting macro.
@Remark@'Declaration of Functions.
DECLARE BuildDate(M,Y,N)
DECLARE FillCalendar(F,L)
DECLARE CheckLeap(M,Y,N)
DECLARE AdjustTable()
@Remark@<:f200,2TimesNewRomanPS,255,0,0>'Check for no windows open.<:f>
TotalWindows = GetOpenfileCount()
IF TotalWindows = 0
Message("This style will change your View to Full Page. To see how it works see Autocal.smm.")
EXIT FUNCTION
ENDIF
@Remark@'Check for error in running macro.
CurDocName = GetDocInfo$(1)
CurStyleSheet = GetDocInfo$(3)
IF CurDocName <<<;> "(Untitled)" OR CurStyleSheet <<<;> "<:f160,2Tms Rmn,0,0,255>~calmon2.sty<:f>"
Message("This style will change your View to Full Page. To see how it works see Autocal.smm.")
EXIT FUNCTION
ENDIF
@Remark@'Fill Edit boxes with current Month and Year.