Is it possible to display more than one variable (one after another on the same line) in a text box or list box or label caption?? Having difficulty with this one... thank you.
displaying multiple variables in one textbox or caption
Collapse
X
-
Tags: None
-
Originally posted by robertlawblawIs it possible to display more than one variable (one after another on the same line) in a text box or list box or label caption?? Having difficulty with this one... thank you.
Otherwise, there shouldn't be any problem - just concatenate using the & operator. If any further difficulty, try posting your code here. -
Originally posted by Killer42For a textbox, you need to turn on the .Multiline property.
Otherwise, there shouldn't be any problem - just concatenate using the & operator. If any further difficulty, try posting your code here.
Turning multiline works if I want to display variables one under the other... however, I want to display variables one beside the other.
ex.
for i = 1 to 10
txtBox.text= strVariable(i)
next i
strVariable is an array that has 10 different values. I want them all to appear one beside the other!! Can't do it so far... is there a way? Thanks for your help.Comment
-
Originally posted by robertlawblawTurning multiline works if I want to display variables one under the other... however, I want to display variables one beside the other.
ex.
for i = 1 to 10
txtBox.text= strVariable(i)
next i
strVariable is an array that has 10 different values. I want them all to appear one beside the other!! Can't do it so far... is there a way? Thanks for your help.
for i = 1 to 10
txtBox.text= txtBox.text & strVariable(i)
next iComment
-
Originally posted by robertlawblawTurning multiline works if I want to display variables one under the other... however, I want to display variables one beside the other.
You might also want to insert a space or a vbTab between them, as in...
Code:for i = 1 to 10 txtBox.text= txtBox.text [B]& vbTab[/B] & strVariable(i) next
Comment
Comment