 |
GetOpenFileName ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetOpenFileName function creates an Open dialog box that lets the user specify the drive, directory, and the name of a file or set of files to open. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL GetOpenFileName(
LPOPENFILENAME lpofn
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetOpenFileName IN comdlg32;
STRING @ lpofn
|
 |
 |
 |
| Parameters: |
 |
lpofn
[in, out] Pointer to an OPENFILENAME structure that contains information used to initialize the dialog box. When GetOpenFileName returns, this structure contains information about the user"s file selection. |
 |
 |
| Return value: |
 |
| If the user specifies a file name and clicks the OK button, the return value is nonzero. |
 |
 |
| Usage: |
 |
IF GetOpenFileName(@lcBuffer) = 0
nErrorCode = CommDlgExtendedError()
IF nErrorCode <> 0
? "Error code:", nErrorCode
ELSE
* the Cancel button selected
ENDIF
ENDIF
|
 |
 |
| My comment: |
 |
The GetFileNameFromBrowse provides similar functionality.
 |
 |
 |
| Word Index links for the GetOpenFileName : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2003-01-02 14:29:33 | | Modified: | 2009-02-06 13:31:45 | Visited in last 7 days: 27 |