韩国winktv 19禁资源:VB 求助

来源:百度文库 编辑:高考问答 时间:2024/04/20 09:01:25
做了两个text,text1里的值是事先算出来的,
现在要根据text1的值来输出text2的判断
如:如果text1 =000,则text2 显示“高温”
如果 text1=021 则text2 显示:“加热”等等
请问该怎么连接?

在text1的onchange事件中加入判断写text2的值

if text1=000 then
text2="高温"
else if text1=021 then
text2="加热"
end if

if text1.text="000" then text2.text="高温"
if text1.text="021" then text2.text="加热"

旧可以了!!
一定要那么写啊!!

Private Sub Text1_Change()
If Text1.Text = "000" Then text2.Text = "高温"
If Text1.Text = "021" Then text2.Text = "加热"
End Sub