Path_SelectPathname()

Examples


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.

Syntax

Path_SelectPathname(pathname)

Parameters

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 (\).

Return value

A boolean indicating one of the following situations:

[spacer]

Value

Description

false

Cancel was clicked.

true

OK was clicked.


Comments

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 (/).

[spacer]

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.



Documentation Feedback