GenDev,
As you have discovered, GETFILE()lets you customise what you see in the "Files of type" control, but it gives you no control over what you see in the actual window - the place where you see the files and folders.
If you really only want to let your users choose from files in one specified directory, and you also want to control what files they see in that directory, then you need to create your own dialogue.
That shouldn't be too difficult. Create an ordinary VFP form. Add buttons, etc. as required.
To get the names of the files that you want to show, use the ADIR() function. This generates an array of filenames, which you can maniupulate in any way you like.
To actually show the files in your form, you could use a lisbtbox, or perhaps a grid. If you really want to do it well (at the cost of a little more effort), use my freeware SimpleList control (see
which lets you exactly mimic the file area that you see in the GETFILE() dialogue.
On the other hand, perhaps you should just use GETFILE() as it stands. It does have the benefit of working in exactly the same way as the File Open dialogue in most other Windows applications.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips, training, consultancy