PRB: SYS(2012) Returns a Value Other Than 0

Last reviewed: June 27, 1995
Article ID: Q117837
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, 2.6
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

SYMPTOMS

According to the manual, the value returned by the SYS(2012) function should be 0 if the database open in the current work area does not contain a memo field. However, once a database with a memo field has been opened in FoxPro for MS-DOS and FoxPro for Windows, the value returned is 64 for any database.

CAUSE

On page L3-1079 in the FoxPro version 2.5 "Language Reference" manual and on page C3-887 in the FoxPro version 2.0 "Commands & Functions" manual, the return value is incorrectly documented for the SYS(2012) function when SYS(2012) is used on a database that does not contain a memo field.

These manuals incorrectly state that a 0 should be returned if the SYS(2012) function is issued for a database open in the current work area that does not contain a memo field. Instead, the value returned is 64, which is the default memo field block size. (NOTE: You can change the block size with the SET BLOCKSIZE command.)


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b 2.60
workarea
docerr
KBCategory: kbprg kbprb kbdocerr
KBSubcategory: FxprgGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.