vb 写程序 在线等急急急

2024-12-29 19:56:41
推荐回答(4个)
回答1:

Private Sub cmd1_Click()
DS = Weekday(Date)
If DS = 1 Then
DF = "星期日"
ElseIf DS = 2 Then
DF = "星期一"
ElseIf DS = 3 Then
DF = "星期二"
ElseIf DS = 4 Then
DF = "星期三"
ElseIf DS = 5 Then
DF = "星期四"
ElseIf DS = 6 Then
DF = "星期五"
ElseIf DS = 7 Then
DF = "星期六"
End If
P1.Print " "
P1.Print Format(Now, "今天是yyyy年mm月d日,") & DF
End Sub

回答2:

Private Sub cmd1_Click()
p1.Print Now
End Sub

回答3:

代码写好了,要参考吗

回答4:

题目看不清