WebFile.URL

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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 System.GotoURL.

Example

The Downloading example project uses WebFile.URL to download the png test file that was opened in the WebApplication.Opening event. The code for the Static Download button is:

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