VB中如何使变量内容显示在文本框里
我是菜鸟,我有个问题,我刚学VB,我设变量x从1到100,想把X的值从小到大显示在文本框TeXT1中,请教高手教我。多谢...
我是菜鸟,我有个问题,我刚学VB,我设变量x从1到100,想把X的值从小到大显示在文本框TeXT1中,请教高手教我。多谢
展开
展开全部
Text1.Text = ""
For X = 1 To 100
Text1.Text = Text1.Text & Str(X) & " "
Next
是这样么
For X = 1 To 100
Text1.Text = Text1.Text & Str(X) & " "
Next
是这样么
本回答被提问者采纳
展开全部
Text1.Text = ""
For X = 1 To 100
Text1.Text = text1.text & str(x);
Next X
For X = 1 To 100
Text1.Text = text1.text & str(x);
Next X
展开全部
for i = 1 to 100
text1=text1 & i
next
text1=text1 & i
next
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询