道排工程是什么:vb 编程题?请指教

来源:百度文库 编辑:神马品牌网 时间:2024/05/16 01:50:41
题目:
输入月和日,计算这天是一年的第几天.

谢谢!!!!!!!!!!!!!!

Private Sub Form_Click()
m = InputBox("Input month.")
d = InputBox("Input day.")
MsgBox "The day is the " & Format("2006-" & m & "-" & d, "y") & " day of this year."
End Sub