Results 1 to 29 of 29

Thread: [RESOLVED] Need help replacing a url!!

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: Need help replacing a url!!

    Edgemeal, that is exactly what I showed him in post #5, he just didn't pay any attention to it.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    128

    Re: Need help replacing a url!!

    Quote Originally Posted by jmsrickland
    Edgemeal, that is exactly what I showed him in post #5, he just didn't pay any attention to it.
    That didn't work -.-"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    128

    Re: [RESOLVED] Need help replacing a url!!

    And now i have a new problem

    it shows duplicated ID's ( 2 times )
    becouse there is a
    thewebsite.com/id=12312
    and
    thewebsite.com/id=conf=12312

  4. #4
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: [RESOLVED] Need help replacing a url!!

    Quote Originally Posted by menzow
    And now i have a new problem

    it shows duplicated ID's ( 2 times )
    becouse there is a
    thewebsite.com/id=12312
    and
    thewebsite.com/id=conf=12312
    I assume you don't want duplicates in the listbox, if so add this,

    Code:
    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, _
     ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    
    Private Const LB_FINDSTRINGEXACT = &H1A2
    
    Private Function FindItem(Lst As ListBox, strText As String) As Integer
        FindItem = SendMessage(Lst.hWnd, LB_FINDSTRINGEXACT, -1, ByVal strText)
    End Function
    and replace -> script.AddItem Mid$(s, q + 1) <- with,
    Code:
    If FindItem(script, Mid$(s, q + 1)) = -1 Then script.AddItem Mid$(s, q + 1)

  5. #5
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: Need help replacing a url!!

    Quote Originally Posted by jmsrickland
    Edgemeal, that is exactly what I showed him in post #5, he just didn't pay any attention to it.
    Ya I see it now.

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