Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Sep 21, 2019 2:45 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: HTTPSocket Links From Source
PostPosted: Tue Nov 09, 2010 12:24 pm 
Offline
User avatar

Joined: Sat May 27, 2006 3:27 pm
Posts: 480
Hi i have seen some posts in the past asking how to get an strings or links from a web pages source code. This may come in use for anyone who is trying to get all web links from a source code without using RegEX with a HTTPSocket

HTTPSocket Page Received Event

Dim HTMLLinks() As String = Split( Content , Chr( &H0A ) )
Dim Link As String

For Each Link In HTMLLinks
If Instr( Link , "href=" )>0 Then
ListBox1.AddRow NthField( NthField( Link , "href=" , 2 ) , Chr( 34 ) , 2 )
End If
Next


Top
 Profile  
Reply with quote  
 Post subject: Re: HTTPSocket Links From Source
PostPosted: Tue Nov 09, 2010 1:01 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
is proven really helpfull to me..;) thanks

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group