1个回答
展开全部
画一个命令按钮和一个标签:
Private Sub Command1_Click()
n = Weekday(Date)
Select Case n
Case 1
Label1.Caption = Now & "星期日"
Case 2
Label1.Caption = Now & "星期一"
Case 3
Label1.Caption = Now & "星期二"
Case 4
Label1.Caption = Now & "星期三"
Case 5
Label1.Caption = Now & "星期四"
Case 6
Label1.Caption = Now & "星期五"
Case 7
Label1.Caption = Now & "星期六"
End Select
End Sub
Private Sub Command1_Click()
n = Weekday(Date)
Select Case n
Case 1
Label1.Caption = Now & "星期日"
Case 2
Label1.Caption = Now & "星期一"
Case 3
Label1.Caption = Now & "星期二"
Case 4
Label1.Caption = Now & "星期三"
Case 5
Label1.Caption = Now & "星期四"
Case 6
Label1.Caption = Now & "星期五"
Case 7
Label1.Caption = Now & "星期六"
End Select
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询