Home » Developer & Programmer » Forms » Storing file names from a specified folder
Storing file names from a specified folder [message #82737] Sun, 29 June 2003 22:31 Go to next message
Victoria
Messages: 152
Registered: July 2002
Senior Member
Hi,
I have to store the file names in a pop-list from the specified folder.How can i achieve this using oracle forms?
Please guide me..

Thanks
~V~
Re: Storing file names from a specified folder [message #82743 is a reply to message #82737] Mon, 30 June 2003 02:32 Go to previous message
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
Previous Topic: creation of procedure - which is better???
Next Topic: Add forum
Goto Forum:
  


Current Time: Thu Apr 25 05:45:23 CDT 2024