按正理,应该把判断条件改为字符串型,而非数字型
Private Sub Command1_Click()
If Text1.Text = "123" And Text2.Text = "123456" Then Text3.Text = "56789" Else Text3.Text = "123456789"
End Sub
sub command1_click()
if test1.text="123" and test2.text="123456" then
test3.text="56789"
else
test3.text="123456789"
end if
end sub
Private Sub Command1_Click()
If test1.text="123" And test2.text="123456" Then test3.text="56789"
Else: test3.text="123456789"
End If
End sub
说的清楚一些,哪方面的?
sub command1_click()
if test1=123 and test2=123456 then test3=56789 else test3=123456789
end sub