在VB中有text1,text2,text3,command1在text1,text2中输入一个有

2025-03-06 20:48:31
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Dim a As Date, b As Date
a = CDate(Text1.Text)
b = CDate(Text2.Text)
Text3.Text = a + b
End Sub