 | CLTBMerge Method |
Merge the contents of two same-key tables.
Namespace:
GeoEngine.Core.GXNetX
Assembly:
geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntaxpublic CLTB Merge(
CLTB lt_bc
)
public CLTB Merge(
CLTB lt_bc
)
Public Function Merge (
lt_bc As CLTB
) As CLTB
Public Function Merge (
lt_bc As CLTB
) As CLTB
public:
CLTB^ Merge(
CLTB^ lt_bc
)
public:
CLTB^ Merge(
CLTB^ lt_bc
)
member Merge :
lt_bc : CLTB -> CLTB
member Merge :
lt_bc : CLTB -> CLTB
Parameters
- lt_bc
- Type: GeoEngine.Core.GXNetXCLTB
Child LTB
Return Value
Type:
CLTB
x - Handle to LTB object
NULL - Error of some kind
Remarks
Merging takes place as follows:
1. The "Key" of the child must be the same as the "Key" of the Master.
2. The fields of the Master LTB are collected in-order.
3. Any new fields of the Child LTB are added to the end of the list.
4. A new LTB is created to contain the new field list (in-order).
5. The Child table contents are added to the New LTB.
6. The Master table contents are added/replace the New LTB.
7. The New LTB is returned.
If the fields of the Master and Child are the same, steps 4, 5, 6 are
replaced by:
4. The Master LTB is copied to the New LTB.
5. Any New records found in the child are added to the New LTB
See Also