PRB: "Compiled Code for This Line Too Long" Error MessageID: Q111991 2.00 2.5x 2.6x | 2.5x 2.6x 3.00 | 2.5x 2.60a kbprg kbprb
The information in this article applies to:
SYMPTOMSAlthough the FoxPro command-line length limit is 2048 bytes, a line of compiled code cannot exceed 1024 bytes (1 kilobyte). This means you can write a line of code containing fewer than 2048 characters that will generate the error message "Compiled code for this line too long" (1252). In Visual FoxPro, the maximum number of characters per line is 8K (kilobytes). The maximum size of a line of compiled code is 4K.
CAUSEThe relationship between the character representation of a command and its compiled or "tokenized" length is unpredictable. Variable names and object references of different lengths may compile to the same number of bytes. For example, a reference to the memory variable "A" compiles to 3 bytes. However, a reference to the variable "ABCDEFGH" also compiles to 3 bytes. Similarly, a reference to the number "1" and a reference to the number "200" will each compile to 3 bytes. For this reason, shortening alias names has no effect on the length of the tokenized line. In addition, white space and literal strings (character strings placed within quotation marks) are not tokenized. Therefore, eliminating spaces and indentation in the command line also will not affect the tokenized line length.
WORKAROUNDSTo work around this behavior, do one of the following:
REFERENCESFoxPro online Help file, "Error Messages" topic FoxPro for MS-DOS "Developer's Guide," Appendix A FoxPro for Windows "Developer's Guide," Appendix B FoxPro for Macintosh "Developer's Guide," Appendix B Additional reference words: FoxMac FoxDos FoxWin VFoxWin 2.00 2.50 2.50a 2.50b 2.50c 2.60 2.60a 3.00 errmsg err msg browse create table insert rqbe limitation capacities capacity KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |