BUG: CREATE CURSOR Does Not Accept UNIQUE as a Field NameID: Q130404 The information in this article applies to:
SYMPTOMSWhen using the CREATE CURSOR command, the name UNIQUE may not be used to name one of the fields in the cursor. The error message "syntax error" is generated by issuing the CREATE CURSOR command from either the Command window or from a compiled program file when UNIQUE is used as a field name. The following example generates this syntax error:
UNIQUE was allowed as a field name prior to Visual FoxPro version 3.0 when
used in the CREATE CURSOR command.
CAUSEUNIQUE is a reserved word in Visual FoxPro. However, reserved words can be used in the CREATE TABLE/CURSOR commands by using name substitution.
RESOLUTIONThe following example uses name substitution to work around this problem. In this example, UNIQUE can be used as a field name in the CREATE CURSOR command.
Notice that once the DISPLAY STRUCTURE command is issued, a cursor
structure is displayed that contains two fields: cName and UNIQUE.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: kbvfp300 kbvfp500 kbvfp600
|
Last Reviewed: August 10, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |