Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a html document programatically
Message
De
28/03/2003 07:44:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00770673
Message ID:
00771240
Vues:
15
>I'm trying to get the source text of a html page from within a VFP8 application. I just want the same thing as if you opened up the URL in a browser and selected view source. Is there any way of doing this?
>
>Thanks!!

Hi John,

You can also use MS ActiveX control named "Internet Transfer Control". It allows you to get files asynchronously using not only http, but ftp and gopher protocols.

Just drop this control on the form, name it, let's say, "oInet" and put somewhere this piece of code:
cHTMLDoc = ThisForm.oInet.OpenURL("http://www.somesite.com.pl",0)
And you've got it.

Best,

Janusz Czudek
WORD Software
http://www.wordsoft.com.pl
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform