Article View: comp.databases.ms-access
Article #173Re: For each syntax
From: Don
Date: Sun, 14 Mar 1999 00:00
Date: Sun, 14 Mar 1999 00:00
52 lines
2320 bytes
2320 bytes
Joe, formerly of Borg: Didn't know that ANYONE else had the 3Stgs.ocx!!! hehehhe Don p.s. you WILL be re-assimilated -- Spam this cretins: webmaster@root admin@root host@root Joe "Nuke Me Xemu" Foster wrote in message <01be6ced$c8642d90$fa35170a@probe>... >ChrisH <cmh@v-wave.com> wrote in article <7cbjfg$gtj2@dagger.videotron.ab.ca>... > >> I want to delete all the items in my list box. > >> I was hoping to use something like: > >> For Each Item In lstJobNum >> lstJobNum.RemoveItem (Item) >> Next > >lstJobNum.Clear > >However, in the general case, I'm a little unclear <g> on the For Each >concept. In what order are the items processed? What if I don't like >that ordering? What are the real advantages of For Each versus, say: > >Dim S As Stooge: Set S = Stooges.Larry.Curly.Moe.Shemp >S.Pies(0).Throw Stooges.Larry, Overhand, Hard >Dim i As Integer: For i = S.Nyuks.Count - 1 To 0 Step -1 > Dim N As Nyuk: Set N = S.Nyuks(i) > N.Volume = i > N.Vocalize > Set N = Nothing >Next i >S.Stand There, LikeAPracticeDummy >Set S = Nothing > >-- >Joe Foster <mailto:jfoster@ricochet.net> KrazyKookKultz! <http://www.xenu.net/> >WARNING: I cannot be held responsible for the above They're coming to >because my cats have apparently learned to type. take me away, ha ha!
Technical Details
Message-ID:
<7chroc$1b9$1@news3.microserve.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7cbjfg$gtj2@dagger.videotron.ab.ca> <01be6ced$c8642d90$fa35170a@probe>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 110e3b,e9f5d1b99c2fcdfc X-Google-Attributes: gid110e3b,public X-Google-Thread: ff0ac,e9f5d1b99c2fcdfc X-Google-Attributes: gidff0ac,public X-Google-Thread: f645d,e9f5d1b99c2fcdfc X-Google-Attributes: gidf645d,public X-Google-Thread: 1143a7,e9f5d1b99c2fcdfc X-Google-Attributes: gid1143a7,public X-Google-Thread: 108062,e9f5d1b99c2fcdfc X-Google-Attributes: gid108062,public From: "Don" <Gofaraway@diespammer.com> Subject: Re: For each syntax Date: 1999/03/14 Message-ID: <7chroc$1b9$1@news3.microserve.net> X-Deja-AN: 455063142 References: <7cbjfg$gtj2@dagger.videotron.ab.ca> <01be6ced$c8642d90$fa35170a@probe> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Ervo, LTD Reply-To: "Don" <Getaway@analtrac.com> Newsgroups: comp.databases.ms-access,comp.lang.basic.visual,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,cz.comp.lang.basic.visual