Hi,
There are several ways to do this, the easiest one is this one:
Call FileNameGet("DATA","FileRead")
Call DATALOAD(FileDlgFile)
The command
FileNameGet will open a standard windows file dialog, in this example only two parameters are required. The "DATA" parameter indicates that the software will load a data files, not a layout or an Autosequence or something like this. The "FileRead" parameter tells DIAdem that the file name entered or selected in the dialog will be used to load(read) the file, not to save(write) it.
DATALOAD is the command that tells DIAdem to load a data file, the parameter is 'FileDlgFile', which is the name of the file selected in the file dialog created by the
FileNameGet command.
There is also a way
to open a dialog and have a drop down list with all available file names in that dialog. It is a little more complicated to make these and I don't like it very much because you have no way of easily filtering the files in that list (i.e. if there are 200 data files in a directory, you will have all of them in the list). If you want to know how that works, I can probably make an example for you.
Let me know if this helped,
Otmar
Otmar D. Foehner