Returns a String associated with an aspect of the object.
expression.toString
expression Required. An expression that returns a DispFPHTMLDocument object.
The toString method is largely unsupported. If executed from an unsupported object it will always return the String "[object]".
The following example displays the string associated with the active document's location property.
Sub ReadString()
Dim FPApp As FrontPage.Application
Dim objDoc As Object
Set FPApp = FrontPage.Application
Set objDoc = FPApp.ActiveDocument.location
If objDoc Is Nothing Then
MsgBox "There is no current active document."
Else
MsgBox "The string associated with this object is: " & objDoc.toString
End If
End Sub