Results 1 to 15 of 15

Thread: [RESOLVED] Works in compiler, not when compiled

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2005
    Posts
    399

    Resolved [RESOLVED] Works in compiler, not when compiled

    Hi, this chunk of code works when I run my project from withing VB, but once i compile it doesnt work

    Code:
    For i = 0 To numofItems - 1
        If SendMessage(listhwnd, LVM_GETITEMSTATE, i, LVIS_FOCUSED) = 2 Then
            curPosition = i
            Exit For
        End If
    Next i
    basically it goes through the list and checks which item has focus.. and changes curposition to that item on the list

    also, I have checked everything i can think of numofitems does equal the correct value all the time

    so i am pretty sure

    If SendMessage(listhwnd, LVM_GETITEMSTATE, i, LVIS_FOCUSED) = 2 Then

    somehow doesnt work once its compiled, any idea why?
    Last edited by bail3yz; Sep 12th, 2007 at 10:29 PM. Reason: title sucked

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