vb TEXT1的内容跟TEXT2相同按Command2就弹出Form2不相同就MsgBox "错误"

[复制链接]
查看11 | 回复3 | 2008-11-14 22:11:10 | 显示全部楼层 |阅读模式
text1要文字不要数字
呵呵 还有多加个TEXT3
如果TEXT1等于TEXT3则弹出FORM3

回复

使用道具 举报

千问 | 2008-11-14 22:11:10 | 显示全部楼层
if text1.text =text2.text then form2.show else msgbox "错误" end if 补充你的问题: if text1.text =text2.text then unload form1 form2.show else msgbox "错误" end ifw问题补充:哥们,你就不会变通吗,只要你明白了代码的意思 自己完全就可以写出来了。If Text1.Text = Text2.Text ThenUnload Form1form2.ShowElseIf Text1.Text = Text3.Text ThenUnload ...
回复

使用道具 举报

千问 | 2008-11-14 22:11:10 | 显示全部楼层
If text1.text =text2.text thenunload meform2.showElseMsgBox "错误", vbInformation + vbOKOnlyEnd if...
回复

使用道具 举报

千问 | 2008-11-14 22:11:10 | 显示全部楼层
if text1.text =text2.text then unload form1 form2.show else msgbox "错误" end if...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行