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 INFORMATIONSteps 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')
- Choose the table 2TEST.
- 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
|