Hi Skouperd,

> 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

I would also suggest using a Control Array in order to do what you
want (it has _significantly_ less resource overhead than individual
controls), however, if you have events and handlers for those 20
controls already you could use this syntax:
  controls("label" & i).text = array(i)

Regards,

Shawn K. Hall
VBHelp Moderator
http://ReliableAnswers.com/

'// ========================================================
    Do you think that when they asked George Washington for
    an ID that he just whipped out a quarter?




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/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/
 

Reply via email to