PRB: Alias Problems with Table Name Starting with Number

ID: Q97633


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 6.0
  • Microsoft FoxPro for MS-DOS, version 2.6
  • Microsoft FoxPro for Windows, version 2.6


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 : kbnokeyword kbVFp300 kbVFp500 kbVFp600
Version : MS-DOS:2.6; WINDOWS:2.6,3.0,5.0,6.0
Platform : MS-DOS WINDOWS
Issue type : kbprb


Last Reviewed: February 2, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.