Hi!
Having several PC's I have copied all VFP files together with my projects on an external drive. Yes, I know certain files should be registered but by just copying the dll's in the default dir's it can be done without registering.
That always worked fine with Windows XP.
Now, doing same using Win7 machine some strange happens.
In a projecthook, part of build-proces, I create a zipfile, including fresh SDT files together with DBC. Zipping requires to remove the active dbc temporarily from the project.
I use therefore command:
_VFP.ActiveProject.Files(lcFile).Remove() whereas lcFile is the DBC.
With win7 it generates error message : Member FILES does not evaluate to an object.
Typing in in the command window: ? _vfp.ActiveProject.Name gives expected result whereas typing in _VFP.ActiveProject.Files(lcFile).Remove() results in mentioned error. Note that for test I gave lcFile value [with fullpath] of : "E:\vfp\projects\prive\code\test.prg"
Any workaround so I can continue using VFP on external drive?
TIA
-Bartt
Having several PC's I have copied all VFP files together with my projects on an external drive. Yes, I know certain files should be registered but by just copying the dll's in the default dir's it can be done without registering.
That always worked fine with Windows XP.
Now, doing same using Win7 machine some strange happens.
In a projecthook, part of build-proces, I create a zipfile, including fresh SDT files together with DBC. Zipping requires to remove the active dbc temporarily from the project.
I use therefore command:
_VFP.ActiveProject.Files(lcFile).Remove() whereas lcFile is the DBC.
With win7 it generates error message : Member FILES does not evaluate to an object.
Typing in in the command window: ? _vfp.ActiveProject.Name gives expected result whereas typing in _VFP.ActiveProject.Files(lcFile).Remove() results in mentioned error. Note that for test I gave lcFile value [with fullpath] of : "E:\vfp\projects\prive\code\test.prg"
Any workaround so I can continue using VFP on external drive?
TIA
-Bartt