How to Create a Customized Append Screen

Last reviewed: April 29, 1996
Article ID: Q98443
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SUMMARY

To create a customized append screen, create a quick screen with Add and Quit push buttons, as explained below.

MORE INFORMATION

To create a customized append screen:

  1. Create a quick screen.

  2. In the first screen, select the Use Memory Variables check box.

  3. Choose OK.

  4. Create a push button that says "Add" (without the quotation marks).

  5. In the VALID clause of the Add push button, input the following procedure:

          APPEND BLANK           && Add a blank record to end of database.
          GATHER MEMVAR          && Transfer data into blank record.
          SCATTER MEMVAR BLANK   && Clear the memory variables.
          SHOW GETS              && Refresh fields to blanks.
          _CUROBJ=1              && Put cursor on first GET object.
    
    

  6. Create a push button that says "Quit" (without the quotation marks).

  7. In the VALID clause of the Quit push button, input the following procedure:

          CLEAR READ             && Terminate Screen
    
    

  8. In the screen layout setup code, add the following:

          SCATTER MEMVAR BLANK
    

How the Append Screen Works

When the Add button is chosen, the input on the current screen is written to the database and the fields on the screen are cleared to allow the user to input another record to be appended. To quit appending records, the user chooses the Quit button and the screen is cleared.


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
KBCategory: kbenv kbprg kbui
KBSubcategory: FxenvMemory


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