Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a handle of VFP or VFP form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00669251
Message ID:
00669292
Vues:
11
Set "cancel" to .T. in BeforeNavigate2

Cancel was passed to the method by ref, so setting it to true cancel the navigation :-)



>Hi Gérald,
>
>>Dont let the browser control doing the job :-)
>>Intercept the link in BeforeNavigate(), cancel the navigation and open your other form with the URL as parameter...
>
>Good tip! And I almost have it working!
>
>Here's what I'm doing:
>
>1) I set the link to a form path+name in the HMTL document
>
>2) I trap for a URL parameter in the BeforeNavigate2 event with an SCX extension.
>
>3) Navigate back to the calling URL
>
>4) I "DO" the passed FORM
>
>5) I return .F.
>
>The only problem now is that the web browser wants to download the SCX file to me (it thinks that I'm requesting a download).
>
>I was hoping the "return .F." would end the BeforeNavigate2 event, but it doesn't seem to.
>
>Any other thoughts?
>
>Hugh
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform