From: "Dimmer" Newsgroups: comp.lang.basic.visual.misc References: <4e8df7f8$1@dnews.tpgi.com.au> <01cc847e$07167600$6d01a8c0@k8s8x> Subject: Re: Newbie question about nested subroutines Date: Fri, 7 Oct 2011 11:36:07 +1100 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 203.219.176.51 X-Original-NNTP-Posting-Host: 203.219.176.51 Message-ID: <4e8e4980@dnews.tpgi.com.au> X-Trace: dnews.tpgi.com.au!tpg.com.au 1317947776 203.219.176.51 (7 Oct 2011 11:36:16 +1000) Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!news-xfer.nntp.sonic.net!rahul.net!wasp.rahul.net!rahul.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp3.phx1!dnews.tpgi.com.au!tpg.com.au!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:448 "Thorsten Albers" wrote in message news:01cc847e$07167600$6d01a8c0@k8s8x... > Dimmer schrieb im Beitrag > <4e8df7f8$1@dnews.tpgi.com.au>... >> The above all works fine. It's just that I want to avoid typing it all > out >> again and again with different values for the LabelNo, TextNo, and >> PriorTextNo. > > Either use the code of Bob or use control arrays. A control array is an > array of controls of the same control type in which all controls have the > same name but a different index number. To create a control array put the > control on a form and set its index property (usually to 0). With a > control > array you have only _one_ event procedure for all controls of the array. > > -- > Thorsten Albers > Right. Got that. That actually did occur to me, but because I am developing the form on the fly, the arrany elemnts would get out of order, so I've not done that when invited in the IDE! Thanks for this further point.