|
Re: Storing file names from a specified folder [message #82743 is a reply to message #82737] |
Mon, 30 June 2003 02:32 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
You could create a temp file containing all the files in a directory and use this file as the input for adding list items, yes. But why would you? There are OPEN/SAVE dialogs built-ins in Forms.
If you're convinced that the Forms-provided solutions are insufficient you can use:
1. to create a temp file with all filenames of a given directory.
- HOST('Dir _the_desired_directory_/B > temp_file');
2. to read the file:
- TEXT_IO.
Loop through the file and for each line of text you can create a list_element.
But I would advise to look up the possibilities of the WIN_API_DIALOG.OPEN_FILE and WIN_API_DIALOG.SAVE_FILE built-ins.
MHE
|
|
|