Partager via


_BROWSER System Variable

Contains the name of the class browser application.

_BROWSER = cProgramName

Parameters

  • cProgramName
    Specifies a class browser application. _BROWSER contains Browser.app if you have installed the class browser application.

    If the class browser is in a directory other than the current default, include a path with the class browser application name.

    If the class browser is in a folder other than the current default, include a path with the class browser application name.

    You can also specify a class browser application in your Visual FoxPro configuration file by including a line using this syntax:

    _BROWSER = cProgramName
    

    A different class browser application can be specified by storing the new application name in _BROWSER from within the Command window or a program.

Remarks

Browser.app displays the relationships between classes in a visual class library (.vcx) and is installed by default in the directory in which Visual FoxPro is installed.

You can run the class browser by issuing the following command:

DO (_BROWSER)

Issuing this command displays the class browser Open dialog so you can select a class library to open. You can run more than one instance of the class browser simultaneously by choosing the class browser menu item in the Tools menu or issuing the command again.

You can also run the class browser for a specific visual class library or an object reference, and you can optionally include the name of a class that is initially selected. For example, the following command starts the class browser, opens the Buttons visual class library, and selects the VCR class:

DO (_BROWSER) WITH HOME(2) + 'CLASSES\BUTTONS.VCX', 'VCR'

For additional information about the Visual FoxPro Class Browser, see Managing Classes with the Class Browser.

See Also

CREATE CLASS | CREATE CLASSLIB | CREATE FORM | CREATEOBJECT( ) | DEFINE CLASS | System Variables Overview