求高人帮我用VB编一个程序

2025-02-24 12:39:42
推荐回答(4个)
回答1:

按正理,应该把判断条件改为字符串型,而非数字型
Private Sub Command1_Click()
If Text1.Text = "123" And Text2.Text = "123456" Then Text3.Text = "56789" Else Text3.Text = "123456789"
End Sub

回答2:

sub command1_click()
if test1.text="123" and test2.text="123456" then
test3.text="56789"
else
test3.text="123456789"
end if
end sub

回答3:

Private Sub Command1_Click()
If test1.text="123" And test2.text="123456" Then test3.text="56789"
Else: test3.text="123456789"
End If
End sub

回答4:

说的清楚一些,哪方面的?
sub command1_click()
if test1=123 and test2=123456 then test3=56789 else test3=123456789
end sub