VB的新手问题。。。关于输出的!

来源:百度知道 编辑:UC知道 时间:2024/09/21 08:01:03
t1 = txt1.Text
t2 = txt2.Text
t3 = txt3.Text
t4 = txt4.Text
t5 = txt5.Text
t6 = txt6.Text
t = 1
While t <= 6
If t = 1 Then Debug.Print "大门:"

If t = 3 Then Debug.Print "跑操:"

If t = 5 Then Debug.Print "卫生:"

Select Case t
Case a = t: Debug.Print t1
Case b = t: Debug.Print t2
Case c = t: Debug.Print t3
Case d = t: Debug.Print t4
Case e = t: Debug.Print t5
Case f = t: Debug.Print t6
End Select
t = t + 1
If t = 2 Then Chr (13)

If t = 4 Then Chr (13)
这段代码有问题么?为什么不输出几个文本?
在问一下怎么在另一个窗口输出文本?
详细一点回答,谢谢了!
Form2.Print "大门:"
不行啊,,,“对象不支持该属性或方法"
(我已经创建了窗口2)

用窗体输出就把Debug换成form1,如果用第二个窗体,就换成form2.print

把 Debug. 去掉吧
因为这个是调试时才打印到立即窗口的,一旦编译,就不起任何作用了,也就是说你的程序没有输出了,直接用Print才是输出到窗口

呵呵,结合楼上两位的就可以了。