I have a textbox that is gets filled with a webpages html page source. What I need is a way to get just this part of the Html (the src will be always different):
and then be able to extract the URL from that so that im just left with the url which would be in this case http://agflashfarm.com/D78AQSAKQLQWI9/2019.swf. now i could just replace the information around the url but what I need help on is how to take just this part of the code out of the webpages html page source
Last edited by messup000; Aug 18th, 2005 at 03:46 PM.
Heres the code. The swf links at the end. But I still need to find out how to get rid of the begining part that i wont know what it exactly is. Go down uploaded wrong frm
Last edited by messup000; Aug 18th, 2005 at 03:44 PM.
Instr function takes two main parameters, the original string (text) and the string it is supposed to look for. If it returns zero (0), it means that the string you are looking for is not in the orignal string. If it returns a non zero value, that value is the starting position of the string you looked for.
So if you had "This is a test text." and you do:
MsgBox InStr ("This is a test text.", "Sample") you will get zero as Semple is not contained in "This is a test text."
if you do MsgBox InStr("This is a test text.", "is") you will get 6, which means that "is" starts on the 6th position.
Ah i see what my problem was. I was assuming that the test you posted was all that you wanted to parse. I fixed my problem by starting the instr function at the "<embed" instead of at 1. I'm not sure if you need this anymore but i'll upload it for ya.
Using VB6 or VB.net 2008 with .net 3.5
"Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad