Results 1 to 2 of 2

Thread: Listview Selections....

  1. #1

    Thread Starter
    Addicted Member LiquidRezin's Avatar
    Join Date
    Dec 2000
    Location
    Aliso Viejo, CA
    Posts
    176
    Ok, im back with another dumb question welp, what im doing is pullling data from an oracle db and putting it into a listview...the problem im having is that once i populate the listview with data, and i DONT select anything and click OK on my form...it selects the first item in the listview and puts the data onto a different form...what should happen is that if i dont select anything on the listview and click ok, nothing should happen....but instead the first item always gets selected...anyone know a way around this? thanks

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    try :
    Code:
    Dim itemSelected As Boolean
    
    Private Sub ListView1_Click()
      itemSelected = True
    End Sub
    
    Private Sub Command1_Click()
      If itemSelected = True Then
        'execute code
      End If
    End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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