Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Bob Butler" Newsgroups: comp.lang.basic.visual.misc Subject: Re: Newbie question about nested subroutines Date: Thu, 6 Oct 2011 16:54:00 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <4e8df7f8$1@dnews.tpgi.com.au> <4e8e3c39@dnews.tpgi.com.au> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit Injection-Date: Thu, 6 Oct 2011 23:55:52 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="f+uu5lAFQHkCzTgLejqQBQ"; logging-data="29476"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FdbjmHGakZbkO5ANsP/Rgs4GMyhOdAyk=" X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18463 In-Reply-To: <4e8e3c39@dnews.tpgi.com.au> X-Newsreader: Microsoft Windows Mail 6.0.6002.18197 Cancel-Lock: sha1:Chwn76jqaW+UowEq3vK/EpOpe6E= X-Priority: 3 X-MSMail-Priority: Normal Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:446 "Dimmer" wrote in message news:4e8e3c39@dnews.tpgi.com.au... > Thanks Bob. Looks like you have solved my problem with Process (a keyword > I was unfamiliar with) 'Process' is not a keyword; I just created a sub and named it "ProcessDelAndESC" so that loking at the calling code I would have some idea what it does. You can name it anything you like within the rules for procedure and variable names. Thorsten is right that a control array might also work for you; it depends on what else you are doing with the controls. The more they have in common the easier a conrol array would make things. > and By Val (an asepct that I am only just coming to terms with. 'byval' and 'byref' are important to understand; I typically use ByVal out of habit unless I need ByRef or performance is critical. Either would work here and a case can be made that ByRef would be more efficient. > I totally agree with you about giving Text boxes and Labels meaningful > names and I do in most of my projects. With this one, I have printed > images of the form and marked the text boxes and labels with their numeric > (default) names, precisely for the reason you say. That's fine until you can't find the printed image