Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing URL's in VFP 6
Message
From
26/02/2001 21:52:53
 
 
To
26/02/2001 20:42:36
Raymond Humphrys
Michigan Department of Community Health
Bath, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00478853
Message ID:
00479865
Views:
24
Raymond,

>I've got to share this from Rick Strahl:
>
> o=CREATEOBJECT("internetexplorer.application")
> o.Visible = .t.
> o.Navigate("http://www.west-wind.com/")
> ? o.LocationUrl
> ? o.LocationName

Note that if you want to do this to track the URL's that your users are navigating to, you'll need to bind to the events in IE so your code to store the LocationUrl can run whenever they click another link or type in a URL in the browser. (Run the above code and note that you can use the browser instance to go anywhere without your program knowing that you changed URL's.)

You can also embed the Web Browser control into a VFP form, as mentioned before, and control all of the navigation from your form.

>Where does this guy find this stuff?

Well, aside from the fact that he eats, sleeps and breathes Internet, it's all in the MSDN Library for anyone to find.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Reply
Map
View

Click here to load this message in the networking platform