Browsing for files using lotus script

Hello:

Is it possible to browse for a file using lotus script? Every example I see the file name has been given and the exact location too. I need to be able to search for the file and pass the information to the rest of the agent so that it can extract the information. Please help, I am probably missing something simple here.

Thanks

Subject: Dir

From designer Help:Dir returns file or directory names from a specified directory, or returns a drive volume label.

Syntax

Dir[$] [ ( fileSpec [ , attributeMask ] ) ]

Subject: Thanks

Thank you. I knew it was something simple. I search help for browse and search and some other ideas but dir was not in my head to do the browsing.

Thanks

Subject: I think I responded too soon.

Hello:

The dir function gives me a list of what is on the directory but not a way to search for the file. I need something like when you go open a database and it gives you a browse window where you have the tree structure of folders and files and you can navigate to the right place.

Thanks

Subject: OpenFileDialog

Is that what you are looking for?

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_OPENFILEDIALOG_METHOD_5310_ABOUT.html

Subject: Perfect!! This time I tested before responding

Thank you for your response. That is exactly what I was looking for.

Thanks