Copyright © 2013-2014 MultiMedia Soft

CommonDialogGetInfoFromLastOpen method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains further information about the file chosen through a previous call to the CommonDialogShowOpen method.

 

For further information about dealing with Unicode characters, check the How to manage Unicode characters in filenames and tags tutorial.

 

 

 

Syntax

 

[Visual Basic]

control.CommonDialogGetInfoFromLastOpen (

nInfo as enumCommonDialogInfo

) as String


 

[C++]

LPCTSTR control.CommonDialogGetInfoFromLastOpen (

short nInfo

);


 

 

Parameter

Description

 

 

nInfo

Number representing the store mode.

Supported values are the following:

Mnemonic constant

Value

Meaning

COMMON_DLG_FULLPATHNAME

0

String representing the absolute pathname (path + filename) of the chosen file; this value is identical to the one returned by the CommonDialogShowOpen method

Example "C:\myfolder\myfile.mp3".

COMMON_DLG_PATH

1

String representing the absolute path where the file is located (without the filename).

Example "C:\myfolder\".

COMMON_DLG_FILENAME

2

String representing the filename of the chosen file.

Example "myfile.mp3".

COMMON_DLG_FILENAME_NOEXT

3

String representing the filename of the chosen file without the extension.

Example "myfile".

COMMON_DLG_EXT

4

String representing the extension of the chosen file.

Example "mp3".

 

 

Return value

 

Value

Meaning

 

 

Empty string

Information not available or an error occurred.

Valid string

The requested information.