DBWSaveFileName

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Library Reference > UserInterface >

DBWSaveFileName

Description

Shows a save file dialog box.

Syntax

Function DBWSaveFileName(Root, Filter)

Parameters

Root

starting directory for the save dialog box

Filter

filter to apply. It is a string of the form: description1|filter1|description2|filter2|... see example for further information

savefilename

Return values

The function returns the full path name of the saved file without the last backslash "\"

Remarks

The filter string must be of the format

"description1|filter1|description2|filter2|description3|filter3|..."

Please note the variable name "myfilter": it's better NOT to use the word "filter" because it could be a reserved one.

Example

rootdir = "C:\"
myfilter = "Text (*.txt)|*.txt|Pictures (*.bmp;*.ico)|*.bmp;*.ico|All files (*.*)|*.*"
risp = DBWSaveFileName(rootdir,myfilter)
msgbox risp