跳转到内容

User talk:Amorbot

页面内容不支持其他语言。
加话题
出自维基百科,自由个百科全书

Sub writeMonth()

      Open "C:\the-months.htm" For Output As #1
      For mth = 1 To 12
          Print #1, "! style=""font-size: larger; text-align: left"" | [[" + CStr(mth) + "月]]"
          For dayz = 1 To numberDays(mth)
              Print #1, "| [[" + CStr(mth) + "月" + CStr(dayz) + "2日|" + CStr(dayz) + "]]"
          Next

      Next

      Close #1

End Sub

Function numberDays(mthr)

      If mthr = 2 Then
          numberDays = 29
      Else
          If mthr = 4 Or mthr = 6 Or mthr = 9 Or mthr = 11 Then
              numberDays = 30
          Else
              numberDays = 31
          End If
      End If

End Function

发起与Amorbot的讨论

发起讨论