Results 1 to 9 of 9

Thread: instr help [resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member ice_531's Avatar
    Join Date
    Aug 2002
    Location
    Sitting w/ Bob Status: -Next -To- Null- Friend: Philip
    Posts
    1,152

    instr help [resolved]

    VB Code:
    1. ' still workin on this function :(
    2. Private Function CheckmyList()
    3. Dim i As Integer
    4. Dim mystr As String
    5. mystr = Text6
    6. For i = 0 To List1.ListCount - 1
    7. If InStr(mystr, List1.List(i)) Then
    8. SEND "The command has been sent, " & mystr & "!"
    9. Else
    10. SEND "Sorry, " & mystr & " but you do not have access!"
    11. End If
    12. Next
    13. End Function

    well i have a listbox and im searching thru it.... now see if mystr is in the listbox then it will send "the command has been send" ...this part worx.. but it never sends the "sorry u dont have access" part .. even when mystr isnt in the list

    what did i do wrong?
    Last edited by ice_531; Jul 8th, 2004 at 09:54 PM.
    :::`DISCLAIMER`:::
    Do NOT take anything i have posted to be truthful in any way, shape or form.
    Thank You!

    --------------------------------
    "Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
    "Finaly I can look as gay as I want..." - NoteMe
    Languages: VB6, BASIC, Java, C#. C++

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