Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gathering Info from Web Pages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01489134
Message ID:
01489161
Vues:
71
This message has been marked as a message which has helped to the initial question of the thread.
>Hi there,
>I Have the need of gathering info from a web page.
>I remember it was possible to gather the Html code from the web but I'd would be glad if someone recalled me how :)
>What I don't really know how to do is programmatically clicking on a link and to get the html code of the opened page.
>
>Thanks
>Alessio
Declare Integer URLDownloadToFile In urlmon.Dll;
  INTEGER pCaller, String szURL, String szFileName,;
  INTEGER dwReserved, Integer lpfnCB

lcUrl			= "http://www.google.ca/"
lcTempFile		= "c:\fox\rbccc.txt"

* get the page to file
URLDownloadToFile(0, lcUrl, lcTempFile, 0, 0)

* file to string
_cliptext		= filetostr(lcTempFile)
Doru
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform