Microsoft KB Archive/97633

= PRB: Alias Problems with Table Name Starting with Number =

Article ID: 97633

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.6 for MS-DOS
 * Microsoft FoxPro 2.6 Standard Edition

-



This article was previously published under Q97633



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.



Steps to Reproduce Problem
 Create a new table with two fields. Save the table with the name 2TEST.DBF. In the Command window, type the following and press ENTER:

CLOSE ALL

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

USE 2TEST

 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:  In the Command window, type the following and press ENTER:

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

</li> Choose the table 2TEST.</li> In the Command window, type the following and press ENTER:

USE (fyl) ALIAS test

</li></ol>

Additional query words: alias workarea numeric

Keywords: kbprb KB97633

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.