Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell.Explorer.2 (create new session)
Message
 
 
À
06/07/2010 16:50:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01471600
Message ID:
01471601
Vues:
67
>Dear All,
>
>How can I create a create a New Session using Shell.explorer.2 as an object added to my form.
>
>I have IE 8 installed.
>
>Here is my code:
>
>
>
>*---------- setting class library to frx2any.vcx
>cOldClassLib = Set("CLASSLIB")
>Set Classlib To "vatp.vcx" Additive
>
>Thisform.AddObject("webx1","webx")
>
>Thisform.webx1.Visible=.T.
>
>Thisform.webx1.registerAsBrowser= .T.
>
>Thisform.webx1.Top=0
>Thisform.webx1.Left=0
>Thisform.webx1.Height=630
>Thisform.webx1.Width=this.Width
>Thisform.webx1.Navigate("http://www.msn.com")
>
>*---------- resetting back CLASSLIB
>Set Classlib To &cOldClassLib
> 
>
>
>After I navigate to different links on MSN website,
>I want to create a New Session. I tried this and did not work:
>
>
>RELEASE webx1
>
>Thisform.RemoveObject("webx1")
>
>&& then I re-add object webx1 again using the above code.
>
>
>The new webx1 has the same last page that the old webx1 had and not a fresh home page.
>
>Any help?
>
>Thanks
>
>Bob

What do you mean by new session? I think Navigate to a different page should work fine.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform