BUG: SIMBA.DLL ODBC Driver Resets FoxPro Default DirectoryID: Q115728 The information in this article applies to:
SYMPTOMSAfter SIMBA.DLL has been used to interact with either a .CSV or .TXT file, the FoxPro default directory is set to the location of the data file.
RESOLUTIONTo work around this problem, do the following: 1. Use SYS(2003) to store the current directory to a memory variable:
2. Execute the ODBC code that uses the SIMBA.DLL Text driver.
3. Issue a SET DEFAULT TO statement to switch back to the original STATUSMicrosoft has confirmed this to be a problem with the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONSIMBA.DLL, the single-tier ODBC driver used to access data from text files, processes information from any of four different file formats: CSV (Comma- Separated Value) Delimited, Tab Delimited, Custom Delimited, or Fixed Length. Regardless of the file format chosen for the Data Source in the ODBC Driver Manager Setup dialog box, a call to the driver results in a switch of FoxPro's default directory to the directory in which the data source file resides.
Steps to Reproduce Problem1. In Control Panel, open the ODBC Driver Manager and set up the "Text 2. Copy some text files (TEXT1.CSV, TEXT2.CSV, and so on) to
3. Make sure FPSQL.FLL is in the FoxPro program directory,
4. Start FoxPro and set the default FoxPro directory:
5. In the Command window, type:
6. Type the following lines of code:
4. Press CTRL+W to close and save the program.
5. In the Command window, type:
7. Press CTRL+W to close the Browse window.
8. In the Command window, type
REFERENCESFoxPro Connectivity Kit "User's Guide," versions 2.5 and 2.6 Additional reference words: FoxWin 2.00 2.50 2.50a 2.50b 2.60 buglist2.00 buglist2.50 buglist2.50a buglist2.50b buglist2.60 KBCategory: kbenv kbprg kbbuglist KBSubcategory: FxtoolCk |
|
Last Reviewed: June 27, 1995 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |