ParentClass

Filer

Alas, poor Filer, we knew it well. Issuing this command in VFP 5 or later results in "Unrecognized command verb." Not so much as a decent sendoff.

The good news, even though the command itself has been removed from the language, is that the Filer utility lives on. In the Tools/Filer subdirectory of your main VFP directory is a Filer form. It uses a Filer.DLL to do the heavy lifting of searching through the directory structures. The DLL is a COM object available to any COM hosting tool, like VFP.

The form supplied is just a sample of what can be done. The tool itself is a weak imitation of the power we used to have in Filer itself, but the code is clear and there are at least a few comments. Consider modifying and enhancing the sample form, or perhaps even using the DLL within your own forms for browsing and manipulating files.

Example

DO FORM LOCFILE(HOME()+"\tools\filer\filer.scx")

See Also

ADir(), Dir, Display Files


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net