Records can be assigned the NEW COPY attribute on the Records and Tables screen during the definition and compilation of a dialog. The NEW COPY designation signifies that the record in question is to receive newly initialized record buffers when the dialog is executed.
The NEW COPY attribute is used when the programmer wants to obtain another occurrence of a record type without overwriting the data that is in the current buffer. To have the use of a second, temporary buffer for the same record type, the programmer links to a lower-level dialog that has specified NEW COPY for that record. An occurrence of the record type is brought into the new buffer and processed as directed. When control returns to the calling dialog, the record buffer at the upper level contains the same data as before; the data in the lower-level record buffer is no longer available.
Dialogs at a level lower than the dialog with a NEW COPY record will not use the NEW COPY buffer, but will use the first buffer allocated for the record.
|
Copyright © 2013 CA.
All rights reserved.
|
|