Transfers the data from source document to a target document.
Syntax
DEprD2D( D2Dname$, D2Dprocess%, srcDoc, trgDoc )
Arguments
D2Dname$ - string, input. The name of a DocToDoc config which the data should be transfered by. To use several configs at the same time you should type their names in the string through a space.
D2Dprocess% - integer, input. The number of a transfer process: 1 - adding data, 3 - erasing data.
You also can use extended numbers instead of 1 and 3 for special data transfer:
11 - adding data without defaults in a DocToDoc config ( items with tag DFT ). Just the number 1 adds data with defaults.
12 - adding data even if the values of source document ( items with tag MLT ) can not be added because they already are in the values list of target document. Just the number 1 will cause error in this case.
13 - works like number 12 but if the values of source document ( items with tag MLT ) were found in the values list of target document, all defaults in the values ( items with both tags MLT and DFT ) will be updated.
31 - erasing data with defaults ( items with tag DFT ). Just the number 3 erases data without defaults.
32 - erasing data even the values of source document ( items with tag MLT ) were not found in the values list of target document, the whole list with values of target document will be displayed in order that an user picks what position in the list should be erased.
srcDoc - NotesDocument, input. The source document which the data should be transferred from. It can be Nothing only for the data erasing if the DocToDoc config hasn't items computing on a source document ( tag SRC ).
trgDoc - NotesDocument, modified. The target document which the data should be transferred into. The function can change the document but doesn't save it.
Return
Boolean. The value True (-1) means that some data from the source document were transferred into the target one.
Configs used
DocToDoc.
Topic links:
See also: