Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a URL link
Message
 
To
24/11/2006 14:59:13
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01172328
Message ID:
01172462
Views:
14
>Hi all:
>
>How do I make something (e.g. www.something.com) display on the screen as a URL (underlined), which when clicked would take me to the referenced web site? Thanks in advance.


The simplest way doing this, putting following code part into a label (or text box) click method
cWebAdres = "www.something.com" 
oObject = CreateObject("Shell.Application")
oObject.Open(cWebAdres)
alternative method
cWebAdres = "www.something.com" 
run /n3 rundll32 url.dll, FileProtocolHandler &cWebAdres
For sending mail, use this syntax "mailto:altunali@hotmail.com" instead of webadres
cWebAdres = "mailto:altunali@hotmail.com" 
run /n3 rundll32 url.dll, FileProtocolHandler &cWebAdres
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform