MakeRel Method

From Microsoft FrontPage Visual Basic

Returns a String that represents a relative URL for the String specified in the URL parameter, using the URLBase parameter as the starting point. If the URL is already relative to the URLBase parameter, the URL is returned unchanged. For more information about absolute and relative URLs, refer to Understanding Absolute and Relative URL Addressing.

expression.MakeRel(UrlBase, Url)

expression    An expression that returns an Application object.

UrlBase    Required Variant. A base URL. Can be a string or a WebEx, WebFolder, WebFile, NavigationNode, or IHTMLDocument2 object.

Url    Required String. A string that contains the entire URL. This can be any URL for a Web site, such as "http://web server/folder" or "file://file system/folder" for disk-based Web sites.