Export (0) Print
Expand All

Application.MakeRel Method

Returns a String that represents a relative URL for the String specified in the URL parameter, using the URLBase parameter as the starting point.

Syntax

expression.MakeRel(UrlBase, Url)

expression   A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
UrlBaseRequiredVariantA base URL. Can be a string or a Web, WebFolder, WebFile, NavigationNode, or DesignerDocument object.
UrlRequiredStringThe 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.

Return Value
String

Remarks

If the URL is already relative to the URLBase parameter, the URL is returned unchanged. For more information about absolute and relative URLs, see Understanding Absolute and Relative Addresses.




Community Additions

ADD
Show:
© 2014 Microsoft