GetDownloadFileURL – PB Docs 120


GetDownloadFileURL

Use to return the URL for a file on the Web server.

Syntax

Parameters

  • serverFile
    A string containing the name of the file on the application�s virtual file path on the Web server.

  • open
    A boolean that determines whether to access the file in open mode or download mode. Values are:

    • true � show the file directly in a browser window (open mode).
    • false � show a dialog box that lets the user open the file, save the file, or cancel the download operation (download mode).

Returns

String. Returns the URL of the file in ASCII format.

Examples


  • This code places the URL for a text file in a MultiLineEdit box and includes it as a hyperlink in a StaticHyperLink control:

Usage

The open argument applies only if a Web Forms application user copies the returned URL in the current browser Address box or if you set a hyperlink in the current browser to the returned URL address.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x