From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to allow the user to select multiple files from a dialog

In an autosequence how can I put up a dialog that
will allow the user to pick multiple files?
0 Kudos
Message 1 of 2
(3,574 Views)
You can use a standard file dialog window. Use the FileNameGet command to launch a new dialog window. To allow multiple file selections in this new file dialog window, you have to pass a file name in the [FileDlgASCIIName] parameter of the FileNameGet command. Take a look at the following sample code:

FileDlgFilt = ""
FileDlgFilt = FileDlgFilt & "ASCII Import (*.*)"
FileDlgCaption = "Select the data file to load"
Call FileNameGet("ANY", "FileRead", FileDlgDir, FileDlgFilt, "test.dat", 1, FileDlgCaption)

Please, refer to the The Command FileNameGet(..) help for more information.
Regards,
Diego F.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,574 Views)