-
October 14th, 2011, 12:02 PM
#1
variables in textboxes?
it would save me a lot of lines if I could just loop every time i needed to fill all the text boxes
for ex (not actual code)
Code:
dim mynum(0-10) as Integer
?dim textbox(0-10) ???
dim varnum as int
varnum = 0
Do
mynum(varnum) = 11
Textbox(varnum).Text = mynum(varnum)
varnum += 1
loop until varnum = 10
something like that so I don't have to keep typing out
TextBox1.Text = 10
TextBox2.Text = 10
....
every time I want to fill all the textboxes
any help?
.Net version 4.0
Thanks again for all the help you guy's have given me!
-
October 14th, 2011, 01:04 PM
#2
Re: variables in textboxes?
Me.Controls("TextBox" & varnum.ToString).Text = "Hi"
-
October 14th, 2011, 01:54 PM
#3
Re: variables in textboxes?
Kick butt! thank you =D here have a cookie ^.^ lol
but seriously, thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|