ConvertToURL Function [Runtime]

From LibreOffice Help
Jump to: navigation, search

Converts a system file name to a file URL.

Syntax:

ConvertToURL(filename)

Return value:

String

Parameters:

Filename: A file name as string.

Error Codes

5 Invalid procedure call

Example:

systemFile$ = "c:\folder\mytext.txt"

url$ = ConvertToURL( systemFile$ )

print url$

systemFileAgain$ = ConvertFromURL( url$ )

print systemFileAgain$