>Tim, this works. Thanks to George Tasker (he wrote it), I use it alot:
Tracy,
Well, I wouldn't go as far as to say that I "wrote" it. I did, awhile back provided the basic information on which it's based. I appreciate the credit and all, but I can't take that much credit for it.
Tim (and Tracy),
There may be a small problem with the code as presented. As you'll note, it's instantiating the Common Dialog object from the ProgID. This works fine in a production environment, but can cause problems in a run-time environment. Specifically, you'll get an error saying that the appropriate license for the class can't be found. This is because this control has both a run-time and design-time license.
The workaround is to either drop an instance of the control on a form, or use the Common Dialog class in the FFC that comes with VFP 7.0.
George
Ubi caritas et amor, deus ibi est