How to Copy Values from Current Record into New Record

Last reviewed: September 22, 1995
Article ID: Q89120
The information in this article applies to:
  • Microsoft FoxBASE+ for MS-DOS, version 2.1
  • Microsoft FoxPro for MS-DOS, version 2.0

The SET CARRY ON command in FoxBASE+ can copy values from the current record into a newly-created record. This flag enables or disables the facility that carries data forward from the previously entered record into the new (current) record when using the full-screen APPEND or INSERT facility. SET CARRY ON enables the facility; SET CARRY OFF disables it.

When the user closes the database, FoxBASE does not save an INSERTed record, which has been carried forward, unless it is modified in some way.

Copying individual fields is controlled by issuing the SET FIELD TO <field list> command before issuing the APPEND command.

The command SET FIELD TO <field list> automatically SETs FIELD ON.

Example

SET CARRY ON

SET FIELD TO name,address    && only carries name, address

NOTE: To obtain this functionality in FoxPro 2.0, use the SET CARRY TO <field list> command.


Additional reference words: FoxDos 2.10 2.00
KBCategory: kbusage kbprg
KBSubcategory:


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: September 22, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.