PRB: FoxPro Default Directory Changed After IME Started

Last reviewed: December 12, 1997
Article ID: Q177786
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.5b
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

The FoxPro default folder randomly switches to the Windows folder during design or run-time under the Double-Byte Character (DBC) Windows 3.1 environment if Input Method Editor (IME) is engaged.

RESOLUTION

Use the absolute directory path when referencing a table.

For example, instead of using C:\Dir1\Dir2\Test.dbf as following:

   ** Assume C:\Dir1\Dir2 is the application directory
   set defa to (sys(5)+sys(2003))
   Use test.dbf

Use the following commands:

   ** Declare a public variable Direc and store the startup directory
   ** when the program is started.

   Direc=sys(5)+sys(2003)

   ** During program execution, reference the table with the following:

   Use (Direc+"Test.dbf")

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Install any US or Localized version of Visual FoxPro version 3.0b on any Double-Byte Character (DBC) version of Windows version 3.1. For example, the Traditional Chinese (TC) version of Visual FoxPro 3.0b on the Traditional Chinese (TC) version of Windows 3.1.

  2. Start Visual FoxPro version 3.0b and issue the following command:

          ? SYS(2003)
    

    This returns the Visual FoxPro 3.0b directory, such as \VFP30, if SET DEFAULT is not defined elsewhere.

  3. Launch the (Input Method Editor) IME by pressing CTRL-SPACE.

  4. In the FoxPro Command window type:

          ? SYS(2003)
    

    NOTE: The command returns the Windows directory, for example, \Windows.

    The IME program and associated IME tables are stored under the Windows folder.


Additional query words: ime
Keywords : FoxWin FxprgIntl vfoxwin
Version : WINDOWS:2.5b,3.0,3.0b
Platform : WINDOWS
Issue type : kbprb


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.

Last reviewed: December 12, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.