domain Property

Microsoft FrontPage Visual Basic

domain Property

Returns a String that represents the name of the server on which the specified document is located or the Web address with which it is associated.

expression.domain

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

While the Object Browser in the Visual Basic Editor shows the domain property as Read/Write, if you try to set the property, you will receive an error.

If the domain property returns an empty String, this generally means the page is part of a disk-based Web site or hasn't been published to a server.

Example

The following example displays a message informing the user that the page hasn't been published if the domain name for the current document is empty.

    If ActiveDocument.domain = "" Then
   MsgBox "The document " & ActiveDocument.Url & _
          " has not been published to a server."
End If