|
pfc_prevmonth
|
|
Full name
|
pfc_u_calendar.dw_cal.pfc_prevmonth
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_prevmonth()
|
Name
|
Datatype
|
li_day
|
Integer
|
li_month
|
Integer
|
li_year
|
Integer
|
event pfc_prevmonth;call super::pfc_prevmonth;Integer li_month
Integer li_year
Integer li_day
//Initialize local values.
li_year = Year(id_date)
li_month = Month(id_date)
li_day = Day(id_date)
//Decrement the month.
li_month --
If li_month = 0 then
li_month = 12
li_year = li_year - 1
End If
//Validate day number for the new month.
If not(IsDate(string(li_month) + "/" + string(li_day) + "/"+ string(li_year))) Then
li_day = 1
End If
//Set the new date.
of_SetDate (date(li_year, li_month, li_Day), True)
Return 1
end event
Name
|
Owner
|
systemfunctions.date |
systemfunctions
|
systemfunctions.day |
systemfunctions
|
systemfunctions.isdate |
systemfunctions
|
systemfunctions.month |
systemfunctions
|
systemfunctions.string |
systemfunctions
|
systemfunctions.year |
systemfunctions
|
pfc_u_calendar.of_setdate |
pfc_u_calendar
|