ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

MultiSelection in OpenFile Dialog

Hello,
 
Is it possible to do a multiselection in the OpenFile dialog ?
And how ?
 
Thank you
 
Fred
0 Kudos
Message 1 of 2
(3,470 Views)
Hello Fred!
 
Try this code:
Option Explicit
 
Dim sgFileName
 
If (FileNameGet( "ANY", "FileRead", DataReadPath, "TDM data (*.tdm),*.tdm", "FileNameGet.lst", True, "Data selection") = "IDOk") Then
  For Each sgFileName In Split(FileDlgFileName,"|")
    MsgBox sgFilename
  Next
End If
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 2
(3,458 Views)