Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web Browser Control Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00665098
Message ID:
00665103
Vues:
20
This message has been marked as the solution to the initial question of the thread.
>I have a browser control on a VFP form. The pages I'm displaying
>have links, and I want to call either a VFP function, or even
>better, a method on the form, whenever a link is clicked.
>Can someone explain how?

The web browser control has a method called BeforeNavigate, which is associated to the event of the same name. Therefore, this event occurs just before the browser navigate to the clicked link.

This method receive a parameter "url" and a "cancel".

You can issue Cancel = .T., in order to cancel the navigation... this way, the browser won´t navigate. Then, you can check the "url" parameter, and decide what to do, in a simply "do case", for example.

HTH
Claudio Lassala
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform