>Hi Ed,
> Thanks for the suggestion.
> 1. I had one problem: SYS(2004) returns "\PROGRAM FILES\MICROSOFT VISUAL FOXPRO 7\" but the files VFP7R.DLL or VFP7T.DLL reside in directory \Program Files\Common Files\Microsoft Shared\VFP. Is there some other sys function that will return this subdirectory?
SYS(2004) returns the directory where the VFP runtime modules are resident; if you're running under the developer version, you aren't using the runtime modules, so the function doesn't work the same way. Testing under the developer IDE is not going to show you the behavior in the runtime environment.
> 2. Which is the "appropriate" file? Is VFP7R.dll for runtime and VFP7T.dll used when running under the development product?
No - the 'R' is the single-thread engine, and the 'T' is the multithreaded engine.