1#!F-adobe-helvetica-medium-r-normal--18* 2#!N 3#!N #!Rdxrep DXReplace #!N #!N Function #!N #!N Adds a 4component from one Field to another. #!N #!N Syntax #!N #!F-adobe-times-bold-r-normal--18* 5#include <dx/dx.h> Object DXReplace(Object o, Object add, char *src, char *dst) 6#!EF #!N #!N Functional Details #!N #!N Adds a component from 7one Field to another. For each Field in Object #!F-adobe-times-bold-r-normal--18* o 8#!EF , the #!F-adobe-times-bold-r-normal--18* src #!EF component of the corresponding Field 9in Object #!F-adobe-times-bold-r-normal--18* add #!EF is placed in the Field as 10the #!F-adobe-times-bold-r-normal--18* dst #!EF component. #!N #!N Objects #!F-adobe-times-bold-r-normal--18* o #!EF 11and #!F-adobe-times-bold-r-normal--18* add #!EF can be single Fields or any Object 12that can contain Fields (for example, Groups or Series). If they 13are anything other than simple Fields, the Object hierarchies must match 14exactly. #!N #!N Objects #!F-adobe-times-bold-r-normal--18* o #!EF and #!F-adobe-times-bold-r-normal--18* add #!EF 15can be the same object. #!N #!N Object #!F-adobe-times-bold-r-normal--18* add #!EF 16can be an Array or an Object where each Field in 17 #!F-adobe-times-bold-r-normal--18* o #!EF corresponds to an Array in #!F-adobe-times-bold-r-normal--18* add #!EF 18. In this case, the Array is added as the #!F-adobe-times-bold-r-normal--18* 19dst #!EF component of the Field and #!F-adobe-times-bold-r-normal--18* src #!EF is 20not required. #!N #!N Return Value #!N #!N It is an 21error if no components of name #!F-adobe-times-bold-r-normal--18* src #!EF are found 22in any of the Fields of #!F-adobe-times-bold-r-normal--18* add #!EF . Returns 23 #!F-adobe-times-bold-r-normal--18* o #!EF on success, or returns #!F-adobe-times-bold-r-normal--18* NULL #!EF and 24sets the error code to indicate an error. #!N #!N See 25Also #!N #!N #!F-adobe-times-bold-r-normal--18* #!Ldxexi,dxall1204 h DXExists #!EL , #!Ldxext,dxall1206 h DXExtract #!EL , #!Ldxins,dxall1282 h DXInsert #!EL , #!Ldxrem,dxall1355 h DXRemove #!EL 26, #!Ldxren,dxall1356 h DXRename #!EL , #!Ldxgcv,dxall1228 h DXGetComponentValue #!EL , #!Ldxscv,dxall1372 h DXSetComponentValue #!EL , #!Ldxswp,dxall1397 h DXSwap #!EL #!EF #!N #!N 27 #!Lctmn,dxall1089 h Component Manipulation #!EL . #!N #!N #!N #!F-adobe-times-medium-i-normal--18* Next Topic #!EF #!N #!N 28 #!Ldxre,dxall1359 h DXResetError #!EL #!N #!F-adobe-times-medium-i-normal--18* #!N 29