The Delphi Bug List

Visual Component Library (VCL)

Dialogs


The color codes indicate in which version(s) of Delphi the bug occurs and what its status is.
Latest update: 1 April 1998
Bug # Delphi versions Description
68 1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 TOpenDialog
Files property does not handle files in root directory if ofMultiSelect option is set.
72 1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 TPrintDialog
No matter what value you set to the Copies property, it is reset to 1 every time you Execute the dialog.
73 1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 TPrintDialog
The Collate feature works only if the PageNums feature is activated too.

Bug #68; last modified: before April 1998
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02
Exists Fixed Fixed Fixed Fixed Fixed Fixed Fixed
Dialogs - TOpenDialog

Files property does not handle files in root directory if ofMultiSelect option is set.

Description
Allowing multiple files to be selected in the TOpenDialog component via the ofMultiSelect option can cause problems if selected files are in the root directory of a drive. The files will have two backslashes following the drive letter and colon. For instance, selecting AUTOEXEC.BAT and CONFIG.SYS from C:\ directory will cause Files[0] to return C:\\AUTOEXEC.BAT and Files[1] to return C:\\CONFIG.SYS.
Solution / workaround
Use the Pos function to search each item for double backslashes (Pos('\\', Files[x])) and use the Delete procedure to remove one of the backslashes if found.

Index page
The Delphi Bug Lists are maintained by Reinier Sterkenburg, with help from the DeBug Team.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.