Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I open a web site from VFP
Message
From
02/02/2017 12:28:24
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01647340
Message ID:
01647356
Views:
76
>>>>>At the end of my program I want to access my web site
>>>>>
>>>>>www.colin-northway.com
>>>>>
>>>>>I can remember how to do it
>>>>
>>>>https://www.berezniker.com/content/pages/visual-foxpro/opening-url-default-web-browser
>>>
>>>
>>>Sorry Naomi
>>>
>>>But if I put that line of code in my program I get an error - I want to open my website from a program - what is the correct code?
>>>
>>>Thanks
>>>
>>>Colin
>>
>>What error are you getting and what exactly did you put in your program?
>
>
>Exactly what you gave me - I would have changed Sergeys website for mine had it worked I got unrecognised command verb

Did you try something like the following?
lcURL = "www.colin-northway.com"
oShell = Createobject("wscript.shell")
oShell.Run(lcUrl)
or
#DEFINE SW_SHOWNORMAL 1
DECLARE Long ShellExecute IN "Shell32.dll" ;
	Long hwnd, String lpVerb, String lpFile, ;
	String lpParameters, String lpDirectory, Long nShowCmd
lcURL = "www.colin-northway.com"
ShellExecute(0, "Open", lcUrl, "", "", SW_SHOWNORMAL)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform