Thread View: comp.databases.ms-access
7 messages
7 total messages
Started by ChrisH
Fri, 12 Mar 1999 00:00
For each syntax
Author: ChrisH
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
9 lines
1058 bytes
1058 bytes
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
But the compiler doesn't like it. What should I use?
Re: For each syntax
Author: Andre' Somers
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
18 lines
1309 bytes
1309 bytes
How about something like: IstJobNum.ListItems.Clear. AndrοΏ½ ChrisH wrote in message <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 > >But the compiler doesn't like it. What should I use? > >
Re: For each syntax
Author: John Cleveland
Date: Fri, 12 Mar 1999 00:00
Date: Fri, 12 Mar 1999 00:00
17 lines
1256 bytes
1256 bytes
List1.Clear HTH John ChrisH wrote in message <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 > >But the compiler doesn't like it. What should I use? > >
Re: For each syntax
Author: Joe "Nuke Me Xemu" Foster
Date: Sat, 13 Mar 1999 00:00
Date: Sat, 13 Mar 1999 00:00
31 lines
2032 bytes
2032 bytes
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!
Re: For each syntax
Author: 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!
Re: For each syntax
Author: Joe "Nuke Me Xemu" Foster
Date: Tue, 16 Mar 1999 00:00
Date: Tue, 16 Mar 1999 00:00
19 lines
1580 bytes
1580 bytes
Don <Gofaraway@diespammer.com> wrote in article <7chroc$1b9$1@news3.microserve.net>... > Joe, formerly of Borg: > Didn't know that ANYONE else had the 3Stgs.ocx!!! > hehehhe Why, soitenly! > Don > p.s. you WILL be re-assimilated Oh, a wise guy eh? Why, you...! -- 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!
Re: For each syntax
Author: Gary Labowitz
Date: Tue, 16 Mar 1999 00:00
Date: Tue, 16 Mar 1999 00:00
33 lines
1908 bytes
1908 bytes
Lean over, Joe, and let me mess up your hair. Why, soitenly! Indeed! -- Gary (MCT, MCPS, MCSD) http://www.enter.net/~garyl/ for references to good books Contribute to garyl@enter.net ICQ 6375624 Joe "Nuke Me Xemu" Foster wrote in message <01be6f5a$47a3ced0$fa35170a@probe>... >Don <Gofaraway@diespammer.com> wrote in article <7chroc$1b9$1@news3.microserve.net>... > >> Joe, formerly of Borg: > >> Didn't know that ANYONE else had the 3Stgs.ocx!!! >> hehehhe > >Why, soitenly! > >> Don > >> p.s. you WILL be re-assimilated > >Oh, a wise guy eh? Why, you...! > >-- >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!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads