there are NO control arrays in .net ----- Original Message ----- From: ".rEs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, July 10, 2004 3:12 AM Subject: Re: [vbhelp] VB Syntax help required.
> the trick is that your labels must be an array > > for xx = 1 to 20 > LabelName(xx).text = ArrayText(xx) > next xx > > > > > > 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! > > > > > > '// ======================================================= > 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 > > > > > ------------------------ 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/
