Function
Interchanges two components in a Field.
Syntax
#include <dx/dx.h>
Object DXSwap(Object o, char *name1, char *name2)
Functional Details
Interchanges the component values for each Field in Object o, if both components (name1 and name2) exist. Object o can be a single Field or any Object that can contain Fields, such as Groups or Series.
Return Value
Returns o or returns NULL and sets an error code. It is an error if any Field of Object o contains one of the named components but not the other.
See Also
DXExists, DXExtract, DXGetComponentValue, DXInsert, DXRemove, DXRename, DXReplace, DXSetComponentValue
12.10 , "Component Manipulation".
[Data Explorer Home Page | Contact Data Explorer | Same document on Data Explorer Home Page ]