The information in this article applies to:
SYMPTOMSPrograms that have been working properly using SUBSTR() and SYS(2015) suddenly produce a syntax error. CAUSEThe assignment of an illegal value, or memory variable containing an illegal value, to a table, alias or array name. RESOLUTION
The solution to the problem is to make sure that the result of the SUBSTR()
and SYS(2015) functions do in fact begin with a letter or an underscore as
required.
STATUSThis behavior is by design. MORE INFORMATION
Depending upon the character string length and logic you use to obtain it,
the syntax error may start occurring on computers with a system date of
November 18, 1998.
NOTE: Future date periods may also cause a similar problem.
Steps to Reproduce BehaviorImportant: Remember to change your computer system clock to the correct date and time after completing the following tests.Set the computer system date to any date between November 18, 1998 and November 10, 1999, using the Date/Time Properties in Windows Control Panel. Note that the leading character of the value assigned to the memory variable is a numeric digit. Alias NamesIn the specific case of November 18th, 1998 run the following code:
Note that the leading character of the value assigned to the memory variable 'y' is a numeric digit, depending upon the computer system date. Observe that the command to create a cursor with that name produces a syntax error. Array Names
Running the preceding code returns the following error message:
REFERENCESFor more information about the ALIAS parameter of the USE command, the SYS(3) or SYS(2015) functions, please see the following articles in the Microsoft Knowledge Base: Q97633 PRB: Alias Problems with Table Name Starting with Number Q88289 PRB: "Alias 'Wxx' Not Found" Error Checking Open Alias FileMicrosoft FoxPro Help: search on: "USE command"; "ALIAS argument"; "SYS(3) Legal File Name"; "SYS(2015) - Unique Procedure Name" (c) Microsoft Corporation 1998. All Rights Reserved. Contributions by Perry Newton, Microsoft Corporation. Additional query words:
Keywords : kbDatabase kbVFp kbVFp300 kbVFp500 kbVFp500a kbVFp600 kbXBase kbXPlatform KbDBFDBC |
Last Reviewed: August 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |