Article ID: 177304
Article Last Modified on 7/1/2004
***** Table setup for TEST of record copy *****
CREATE TABLE 'testcopy.dbf' ;
(FNAME C(12), LNAME C(10), SEQUENCE I(2))
***** Add five records for testing *****
INSERT INTO testcopy (FNAME, LNAME, SEQUENCE) ;
VALUES ('Rutherford B.', 'Hayes', 19)
INSERT INTO testcopy (FNAME, LNAME, SEQUENCE) ;
VALUES ('James A.', 'Garfield', 20)
INSERT INTO testcopy (FNAME, LNAME, SEQUENCE) ;
VALUES ('Chester A.', 'Arthur', 21)
INSERT INTO testcopy (FNAME, LNAME, SEQUENCE) ;
VALUES ('Grover', 'Cleveland', 22)
INSERT INTO testcopy (FNAME, LNAME, SEQUENCE) ;
VALUES ('Benjamin', 'Harrison', 23)
LOCATE FOR sequence = 22
SCATTER MEMVAR MEMO && Copies contents of current record to memory.
APPEND BLANK && Creates a new blank record.
GATHER MEMVAR MEMO && Copies contents from memory to new record.
113443 How to Copy a General Field from One Record to Another
Additional query words: edit copy paste
Keywords: kbhowto KB177304