|
-
Aug 13th, 2001, 06:33 PM
#1
Thread Starter
Lively Member
Deleting items in list box
this should be easy. how can i delete items in a listbox?
I'm a beginner.
------------------------------------------------
Your impossible ego ***** is like a
Megalomaniacal tab on my tongue
You *****in' touch me I will rip you apart

-
Aug 13th, 2001, 06:45 PM
#2
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 13th, 2001, 06:45 PM
#3
where 0 is the index of the item you are removing
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 13th, 2001, 06:53 PM
#4
Fanatic Member
Hello:)
Try this
VB Code:
Private Sub Form_Click()
While list1.ListCount > 0
list1.RemoveItem list1.ListCount - 1
Wend
End Sub
Private Sub Form_Load()
list1.AddItem "Play"
list1.AddItem "Boy"
End Sub
Last edited by prog_tom; Aug 13th, 2001 at 07:07 PM.

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
-
Aug 13th, 2001, 06:55 PM
#5
Re: Hello:)
Originally posted by prog_tom
Try this
VB Code:
Dim i as Long
For i = 0 to List1.ListCount
List1.RemoveItem i
Next i
unfortunately, this example will result in an error. You'll have to go backwards through the list
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 13th, 2001, 07:10 PM
#6
Fanatic Member
Problem fixed...
Well I fixed the problem...

prog_tom
JOIN THE REVOLUTION!!!! Dual T3 backedup science community.
http://physics.sviesoft.com/forum
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|