Skip to main content
Dominique Sacre
Rocketeer
Feb 15, 2013 10:40 PM UTC

How to do a multi-file select dialog box in Dialog System

Problem:

How to do a multi-file select dialog box in Dialog System.

Resolution:

How to do a multi-file select dialog box in Dialog System.

Since the DSDIR Dialog System extension only allows a single file to be selected, you can use the GUI Class Library OpenDialog class. This class has a method "allowMultipleSelection" which sets a flag in the open dialog that allows you to select multiple files. You may not see this method listed in the class library help, but you'll see it in Net Express\\base\\source\\guicl\\opendlg.cbl. You can then use the "getAllfiles" method to retrieve the selected files. Please see the source comments in the attached example.

Attachments:

multifiles.zip

Old KB# 3794