Difference between revisions of "WebFile.URL"

From Xojo Documentation

(Example)
Line 18: Line 18:
 
     ShowURL(App.LogoFile.URL)
 
     ShowURL(App.LogoFile.URL)
 
   Else
 
   Else
     msgBox("Whoops, no logo file available")
+
     MessageBox("Whoops, no logo file available")
 
   End If
 
   End If
 
</rbcode>
 
</rbcode>

Revision as of 23:37, 28 August 2019

Read-Only Property (As String )


StringValue = aWebFile.URL

New in 2010r5

Supported for all project types and targets.

The url to the file. Best used with ShowURL(WebFile.URL).

Example

The Downloading example project uses WebFile.URL to download the png test file that was opened in the App class’s Open event. The code for the Static Download button is:

If App.LogoFile <> Nil Then
ShowURL(App.LogoFile.URL)
Else
MessageBox("Whoops, no logo file available")
End If