SUMMARY
The GETDIR() function can be used in FoxPro to display the FoxPro Select
Directory dialog box. This function is not available in versions of FoxPro
prior to version 2.5.
The GETDIR() function accepts 0, 1, or 2 character strings as arguments and
returns the name of the chosen directory as a character string in the
dialog box.
The following example uses the GETDIR() function to display the Select
Directory dialog box with the C:\WINDOWS directory initially selected:
mdir = GETDIR("C:\WINDOWS", "SELECT A DIRECTORY")
NOTE: The limit of the text string is related to the proportional size of
the system font.
For instance, in the following text, note that since the text is uppercase,
only the first 12 characters display and the string truncates after the
word 'FIRST':
SELECT THE FIRST SUBDIRECTORY.
However, in the following text, note that about 26 characters display and
that the string truncates following the '-'.
Select the first subdirectory - which compares.