DOCERR: Control1.scx Uses m.saverecno Instead of m.toprec

Last reviewed: May 23, 1996
Article ID: Q136639
The information in this article applies to:
  • Microsoft FoxPro for Macintosh, version 2.6a

SUMMARY

On Page 52 of the Developer's Guide, a VALID code sample is given for Control1.scx, which contains several buttons. After the GO TOP command, m.saverecno is set equal to RECNO(). Actually, m.toprec should be set equal to RECNO().

MORE INFORMATION

Control1.scx uses navigation buttons to assist the user in moving through the records of a database. At the beginning of the code, the current record number is saved in the m.saverecno memory variable. When the GO TOP command is issued, the first record number should be saved in m.toprec. The example code on disk is correct, but the Developer's Guide uses m.saverecno instead of m.toprec.


Additional reference words: 2.60a FoxMac
KBCategory: kbref kbdocerr
KBSubcategory: FxotherDochelp


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: May 23, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.