AnswerWizard Property

Microsoft FrontPage Visual Basic

Some of the content in this topic may not be applicable to some languages.

Returns an AnswerWizard object that contains the files used by the Help search engine.

expression.AnswerWizard

expression Required. An expression that returns an Application object.

Example

This example adds an Answer Wizard file and retrieves the Creator and Count properties.

Note  The Creator property for Microsoft FrontPage is different from the Creator property used by other Microsoft Office objects, such as the AnswerWizard object. The Creator property for FrontPage uses a string format, while Office objects use a 32-bit integer to identify the application that created the file. In this example, you'll note that the Creator property returns a 32-bit integer rather than the FrontPage string format because the AnswerWizard object is an Office shared object. For more information, use the Object Browser for all libraries or Microsoft Visual Basic Help to view more detailed information about the Creator property for Microsoft Office objects.

Private Sub GetAnswerWizardInfo()
    Dim myAW As AnswerWizard
    Dim myAWFiles As AnswerWizardFiles
    Dim myAWCount As Integer
    Dim myAWCreator As String

    Set myAW = ActiveWeb.Application.AnswerWizard
    Set myAW = myAW.Files

    With myAWFiles
            myAWCreator = .Creator
            .Add("myAWFile")
            myAWCount = .Count
    End With
End Sub