DOCUMENT:Q221692 14-JUL-1999 [foxpro] TITLE :FIX:Project Object Modify Method Fails if Path Contains Spaces PRODUCT :Microsoft FoxPro PROD/VER:WINDOWS:6.0 OPER/SYS: KEYWORDS:kbProjManager kbvfp600 kbVS600sp3fix kbGrpDSFox kbDSupport ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, version 6.0 ------------------------------------------------------------------------------- SYMPTOMS ======== In Visual FoxPro 6.0, modifying a visual class programmatically, using the Project object Modify method, fails if the path to the project file contains spaces. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Studio 6.0 Service Pack 3. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Create a directory named "aa bb." 2. In the Visual FoxPro Command window, change the default directory to "aa bb." 3. Create a project, named Test. 4. In the Project Manager, select the Class tab. 5. In the Class tab, click the New button to create a new form class called F1 and saved it as F1.VCX. 6. While the Project Manager is still open, issue the following command in the Command window: _VFP.ActiveProject.Files.Item("f1.vcx").Modify("f1") Note that the following Visual FoxPro error appears: OLE error code 0x80004005: Unspecified error Additional query words: KBDSE ====================================================================== Keywords : kbProjManager kbvfp600 kbVS600sp3fix kbGrpDSFox kbDSupport Technology : kbVFPsearch kbAudDeveloper kbVFP600 Version : WINDOWS:6.0 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.