PRB: FoxPro Default Directory Changed After IME Started

ID: Q177786

The information in this article applies to:

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          : kbVFp FoxWin FxprgIntl 
Version           : WINDOWS:2.5b,3.0,3.0b
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: December 14, 1997