真正的公农历转换类for VB(12) End If Else For i = 0 To b If (lHolidayInfo(i).Month = mvarlMonth) And _ (lHolidayInfo(i).Day = mvarlDay) Then tempStr = lHolidayInfo(i).HolidayName Exit For End If Next End If lHoliday = tempStr End Property '求公历节日 Public Property Get sHoliday() As String Dim i As Long Dim b As Long Dim tempStr As String
tempStr = "" b = UBound(sHolidayInfo) For i = 0 To b If (sHolidayInfo(i).Month = mvarsMonth) And _ (sHolidayInfo(i).Day = mvarsDay) Then tempStr = sHolidayInfo(i).HolidayName Exit For End If Next sHoliday = tempStr End Property '是否是农历的闰月 Public Property Get IsLeap() As Boolean IsLeap = mvarIsLeap End Property
Public Property Get lDay() As Long lDay = mvarlDay End Property
Public Property Get lMonth() As Long lMonth = mvarlMonth End Property