|
-
Nov 8th, 2002, 04:12 PM
#1
Thread Starter
New Member
simple question, drawing a blank
its been along time since ive coded in VB, in fact i was using vb 4 the last time i did anything. now i am using vb.net. question is a have 35 labels on a form. i want to update them all in a do until loop to save time. how do i merge a integer type variable with a control name? the labels are label1, label2, label3, etc.
ex.
x = 0
do until x = 35
label*x*.text = val(x)
x = x + 1
loop
that is just a rough sample of what i am trying to do. my question is what is the proper syntax for the label*x*.text portion?
thanks
-Nick
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
|