GetOpenFileName opens a Open File dialog box.
Return Value
The function returns a string vector with the complete file names. If the user chooses the Cancel button the function returns an empty string (“”). If the function is called with the parameter bMultipleSelect with the value TRUE (1), the user can select multiple files. If the parameter bConvertToNC is set to TRUE (1), the function returns the names of the converted NC files.
Parameters
The parameter ssDir contains a path name. Example c:\UniPlot\data. If ssDir is a complete file name the file name is used to initialize the File Name edit control if the file exists.
If bMultipleSelect is TRUE (1), the user can select multiple files. If the parameter is FALSE (0), only one file name can be selected.
If the parameter is set to TRUE (1), the selected files are sorted by the date of the last modification.
If the parameter is set to TRUE (1), the files are converted to NC files and the names of the NC files is returned.
Comment
If an Excel file with multiple sheets is selected, a sheet selection dialog box is displayed if the parameter bConvertToNC is set to TRUE (1).
Example
svFileName = GetOpenFileName_Data("d:/", TRUE, TRUE, TRUE)
if (svFileName[1] == "") {
return "";
}
History
| Version | Description |
|---|---|
| 5.30.5 | New |
See also
Overview Files, Overview Dialogboxes, GetSaveFileName, GetOpenFileName, DialogBox, MessageBox
id-1623903