Copyright © 2011-2019 MultiMedia Soft

CommonDialogGetInfoFromLastSave method

Previous pageReturn to chapter overviewNext page

Remarks

 

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

 

 

Syntax

 

[Visual Basic]

Public Function CommonDialogGetInfoFromLastSave (

nInfo as enumCommonDialogInfo

) as String


 

[C#]

public string CommonDialogGetInfoFromLastSave (

enumCommonDialogInfo nInfo

);


 

[C++]

public: string CommonDialogGetInfoFromLastSave (

enumCommonDialogInfo nInfo

);


 

 

Parameter

Description

 

 

nInfo

Number representing the information to obtain.

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.