Hi Peter28,
DIAdem calls the same Windows SDK funtion that FileNameGet() does, so you are already effectively calling the dialog that you get when you choose File>>Open. The only difference is that the possible file types are included in the extension filter parameter, as per:
FileDlgFilt = ""
FileDlgFilt = FileDlgFilt & "DIAdem data file (*.dat), *.dat,"
FileDlgFilt = FileDlgFilt & "LabVIEW LVM file (*.lvm), *.lvm,"
FileDlgFilt = FileDlgFilt & "Excel file (*.xls), *.xls,"
FileDlgFilt = FileDlgFilt & "ASCII Import (*.*)"
FileDlgCaption = "Select the data file to load"
Call FileNameGet("ANY", "FileRead", FileDlgDir, FileDlgFilt, "", 1, FileDlgCaption)
Regards,
Brad Turpin
NI