|
-
Apr 19th, 2008, 02:46 PM
#1
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.
-
Apr 19th, 2008, 02:50 PM
#2
Thread Starter
Addicted Member
Re: Need help replacing a url!!
 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 -.-"
-
Apr 19th, 2008, 02:52 PM
#3
Thread Starter
Addicted Member
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
-
Apr 19th, 2008, 03:29 PM
#4
Re: [RESOLVED] Need help replacing a url!!
 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)
-
Apr 19th, 2008, 02:54 PM
#5
Re: Need help replacing a url!!
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|