The Path_SelectPathname() function displays a file dialog box, allowing a user to indicate the location of a file, and returns a generic pathname to that location.
Path_SelectPathname(pathname)
• pathname – A string variable to which the pathname selected by the user. The pathname is returned in generic format. You can set the value of this variable before calling the Path_SelectPathname() function to specify the default location that will appear in the dialog box. You supply the path in native format. Be sure to end the path with the trailing slash (\).
A boolean indicating one of the following situations:
Value |
Description |
---|---|
false |
Cancel was clicked. |
true |
OK was clicked. |
The pathname that’s returned to pathname is in a generic format. Generic pathnames use a colon (:) before and after DOS drive letters. The characters that separate folders and directories are forward slashes (/).
Native pathname |
Generic pathname |
---|---|
C:\DEX\TOOLS\ |
:C:DEX/TOOLS/ |
The getfile() function allows a user to return a pathname for a particular file by selecting that file from a list of files with specific file type extensions, such as .DIC or .MAC. |