Skouperd
try with "+" insteed of "&"
or
you could use control array
regards
viswanathan
--- Skouperd <[EMAIL PROTECTED]> wrote:
> Hi everybody, I have a problem and maybe somebody
> that is smart can
> advise me how to solve it. I am using VB.net (2003)
> and the problem
> is something along the following lines.
>
> Sub Test
> Label1.Text = Array(1)
> Label2.Text = Array(2)
> Label3.Text = Array(3)
> ....
> Label18.Text = Array(18)
> Label19.Text = Array(19)
> Label20.Text = Array(20)
> End Sub
>
> Now I need to be able to write the code more or less
> as follows:
>
> Sub Test2
> For i = 1 to 20
> Label&i.text = Array(i)
> Next i
> End Sub
>
> Now I have listed it EXTREMELY simply above but that
> is more or less
> what I need to do. The problem I am having is with
> the &i (it is
> obviously wrong, but the systax is the one that I
> use in SAS) Surely
> VB must be able to support something along the above
> lines? Any
> assistance will be appreciated!
>
> Adios
> Skouperd
>
>
>
=====
Regards
Viswanathan R
Mob: 9886083389
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~->
'// =======================================================
Rules : http://ReliableAnswers.com/List/Rules.asp
Home : http://groups.yahoo.com/group/vbHelp/
=======================================================
Post : [EMAIL PROTECTED]
Join : [EMAIL PROTECTED]
Leave : [EMAIL PROTECTED]
'// =======================================================
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/vbhelp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/