Alias Problems with Table Name Starting with Number

Last reviewed: December 15, 1997
Article ID: Q97633
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, version 2.6
  • Microsoft FoxPro for Windows, version 2.6
  • Microsoft Visual FoxPro, versions 3.0, 5.0

SUMMARY

Giving a table a filename that starts with a number causes a character to appear in the selected work area instead of the table name when the table is opened. This behavior could cause problems if you use an alias with screens and reports.

Below is an example that illustrates how to work around this problem.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a new table with two fields.

  2. Save the table with the name 2TEST.DBF.

  3. In the Command window, type the following and press ENTER:

          CLOSE ALL
    

  4. In the Command window, type the following and press ENTER:

          USE 2TEST
    

  5. In the Command window, type the following and press ENTER:

          SET
    

The selected work area contains a letter, such as A, for work area 1 instead of the table name.

Workaround

The following procedure causes 2TEST.DBF to be opened with the alias TEST instead of a character in the current work area:

  1. In the Command window, type the following and press ENTER:

          fyl=GETFILE('dbf','choose')
    

  2. Choose the table 2TEST.

  3. In the Command window, type the following and press ENTER:

         USE (fyl) ALIAS test
    


Additional query words: alias workarea numeric
Keywords : FoxDos FoxWin FxprintGeneral vfoxwin
Version : 2.6 3.0 5.0
Platform : MS-DOS 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 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.