Set Carry, Set("Carry")
SET CARRY lets you specify that the values of certain fields should be repeated in newly added records. SET("CARRY") indicates whether you're working in that mode.
Usage |
SET CARRY ON | OFF SET CARRY TO [ FieldList [ ADDITIVE ] ] cCarry = SET( "CARRY" ) |
Parameter |
Value |
Meaning |
FieldList |
Comma-delimited list of fields |
The fields whose values should be carried forward to new records. |
Omitted |
Resets the list of fields to be carried forward to include all fields. |
|
cCarry |
"ON" |
CARRY is currently ON. |
"OFF" |
CARRY is currently OFF. |
You can list memo fields in SET CARRY, but their values aren't carried forward. |
Example |
USE MyLogTable && a table for logging hours spent SET CARRY TO dLogDate BROWSE && now enter today's log entries |
Unfortunately, although you can pass a second (numeric) parameter, it still returns "ON" or "OFF". There's no way to get the current list of fields to carry forward. Seems to us that SET("CARRY",1) ought to do this. |
See Also |