Microsoft KB Archive/89120

{| = How to Copy Values from Current Record into New Record =
 * width="100%"|

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 command before issuing the APPEND command.

The command SET FIELD TO 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 command. Additional reference words: FoxDos 2.10 2.00 KBCategory: kbusage kbprg KBSubcategory:
 * }