Results 1 to 26 of 26

Thread: [RESOLVED] check box to remove items from list?

Threaded View

  1. #18

    Thread Starter
    Lively Member
    Join Date
    Jan 2007
    Posts
    93

    Re: check box to remove items from list?

    im not really sure what i should do.
    VB Code:
    1. if checkbox.value = true ??????????
    2. if label1.text = "xxxxx" then
    3. Dim i As Integer
    4.    
    5.     Randomize
    6.     i = Rnd(List1.ListCount) * List1.ListCount
    7.     Label4.Caption = List1.List(i)
    8. end if
    im not sure if that is how i should do it. im not sure what i need to put in the area with the "????" or if this is the best way of doing this, or even if this way is possible.
    i also just tried this but it didnt work.
    VB Code:
    1. If chkboxuf1.Value = True Then
    2.     With List1
    3.         .RemoveItem "AAA"
    4.         End With
    5.         End If

    I have the lists load with the form, like this
    VB Code:
    1. Private Sub Form_Load()
    2. With List1
    3.     .AddItem "AAA"
    4.     .AddItem "BBB"
    5.     .AddItem "CCC"
    6.     .AddItem "DDD"
    7.    
    8.     End With
    Last edited by stevevb6; Jan 31st, 2007 at 12:07 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width