VB中怎么把循环条件得到的结果都在text中显示,要一次性显示。

2025-02-27 02:13:05
推荐回答(3个)
回答1:

For ......
......
Text1.Text = Text.Text & "要显示的数据或变量" & vbCrlf
......
Next

回答2:

dim a as string
for
a= a & "你的结果(变量无需用双引号)" & "空格or符号(用来分隔每个循环结果)"
next
text1 = a

回答3:

你可以先把循环得到的结果赋给一个变量,然后把这个变量赋给text不就行了