Uses the appropriate web browser application (based on the userŐs Internet settings) to go to the HTTP URL specified.
Parameters:
Name |
Type |
Description |
|||||||||||||||
url |
String |
The HTTP address to go to. Other types of addresses (ftp, smb, mailto) depend on the operating system and the browser.
Displays the supplied URL in the user's default web browser. If the browser is not open, it will launch the browser. Whether the URL opens in a new tab or a new window is controlled by the user's browser settings.
|
Available in:
WindowMain |
WindowLink |
YES |
YES |
Used in:
XojoScript Name |
GUID |
Launch web browser with address url |
791D6890-69E4-4E1E-8FAD-D431ADCCD4ED |
Open Email Client with email address |
5CCBA6BF-17C5-492C-9868-F3D40F9C5CF1 |
Hint: You can find more references to XojoScripts which make use of this function by sending the following SQL statement to the database:
Select id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%ShowURL%'
Example 1 XojoScript:
// Open email address in Mail client
Dim email, email_subject, message_text As String
// Example String:
' Dim s As String = "mailto:" + email + "," _
' + "notwo@snai1mai1.com" _
' + "?subject=" + email_subject _
' + "&cc=buddys@snai1mai1.com" _
' + "&bcc=secretfriend@snai1mai1.com" _
' + "&body=" + message_text
email = Trim(GetText("imTF_adr_EmailAddress"))
If email <> "" Then
ShowURL("mailto:"+email)
End If
Example 2 XojoScript:
// Launch URL in webbrowser, from address
Dim web As String
web = Trim(GetText("imTF_adr_Web"))
If web <> "" Then
If Instr(web,"http://")=0 Then web="http://"+web
If web <> "" Then
ShowURL(web)
End If
End If