Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP 'control' netscape or IE?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00045050
Message ID:
00045089
Vues:
28
>I'd like to write a VFP program that controls a browser to:
>
>1) Open a specific web page using a URL from 'the database'
>2) Read the source to extract all the links and add all the (unique) URLs to the database
>3) Go to the next URL in the database and start over at step (1).
>
>Any ideas?
>
>Thanks in advance

You can invoke Intenet Explorer as an Active-X server. Microsoft's site has a paper listing the properties and methods of the server. I don't know if you can read the source or not but you can navigate the web under VFP's control.

To invoke the server
oIE = createobject("internetwxplorer.application")
oIE.visble=.T.

To open a URL
oIE.navigate(URLname)
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform