Partilhar via


_SAMPLES System Variable

Contains the path of the directory in which the Microsoft Visual FoxPro samples are installed.

_SAMPLES = cPath

Parameters

  • cPath
    Specifies the complete path to the directory containing the Visual FoxPro samples.

Remarks

By default, _SAMPLES contains the path of the directory containing the Visual FoxPro samples. Visual FoxPro samples are installed when you perform a Full installation of the MSDN (Microsoft Developer's Network) library, or you perform a Custom installation of the MSDN library and you specify to install the Visual FoxPro samples. If you don't install the Visual FoxPro samples, _SAMPLES contains the empty string.

The path that _SAMPLES contains is read from an MSDN registry key in the Windows Registry. If this registry key doesn't exist (for example, if you didn't install the samples), _SAMPLES contains the empty string.

You can also specify a path to the samples directory with the Samples Directory item in the File Locations tab of the Options dialog box. If you use the Options dialog box to specify a path to the samples directory, _SAMPLES contains the path you specify. If you choose Set As Default, the path is saved for subsequent Visual FoxPro sessions.

HOME(2) returns the path contained in _SAMPLES.

See Also

HOME( ) | File Locations