Microsoft KB Archive/109058

{| = Error 1225 & 1226 Descriptions Reversed in Manual & Help =
 * width="100%"|

ID: Q109058

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b
 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b
 * Microsoft FoxPro for Macintosh, versions 2.5b

SUMMARY
In the "Developer's Guide" and online Help file, the descriptions of errors 1225 and 1226 are reversed. The description for error 1225 should apply to error 1226, and the description for error 1226 should apply to error 1225.

Incorrect Descriptions
The messages and descriptions are incorrectly listed as follows:

Must be a file variable. (1226)     A file variable (field) was used where a memory or array variable was required.

Must be a memory variable. (1225)     A memory variable or an array variable was used where a file variable (field) is required. For example, the message for error 1225 is "Must be a memory variable." Yet the description below it states that "... a file variable (field) is required." The description contradicts the message.

Correct Descriptions
The messages and descriptions should read as follows:

Must be a file variable. (1226)     A memory variable or an array variable was used where a file variable (field) is required.

Must be a memory variable. (1225)     A file variable (field) was used where a memory or array variable was required.

Steps to Reproduce Error Messages
To cause error message 1226, "Must be a file variable," use the following command:

EDIT FIELDS m.var To cause error message 1225, "Must be a memory variable," use the following command: STORE 'test' TO test.fld

Locations of Documentation Errors

 * FoxPro for Windows "Developer's Guide," version 2.5, Appendix B, page B-24
 * FoxPro for MS-DOS "Developer's Guide," version 2.5, Appendix A, page A-24
 * FoxPro for Macintosh "Developer's Guide," version 2.5b, Appendix B, page 460
 * FoxPro for Windows, FoxPro for MS-DOS, and FoxPro for Macintosh online help, "Error Messages" topic

Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b docerr doc err switched swapped reversed backwards errmsg err msg KBCategory: kbenv kbother kberrmsg kbdocerr KBSubcategory: FxenvMemory
 * }