EncodeURL Method

Microsoft FrontPage Visual Basic

EncodeURL Method

Returns a String that represents the encoded Web address for the specified Web address.

expression.EncodeURL(bstrDecodedURL)

expression    Required. An expression that returns an Application object.

bstrDecodedURL    Required String. The Web address to encode.

Remarks

Encoding a URL includes replacing spaces with "%20". Use the DecodeURL method to decode a Web address.

Example

the following example encodes the specified Web address.

    Dim strEncodedURL As String

strEncodedURL = Application.EncodeURL _
    ("http://www.fourthcoffee.com/our best coffee.htm")