DBTransferInfo::SetDestFile()

Description

SetDestFile() is used to set the destination file pointer for the transfer.

Call Signature

void SetDestFile ( int/string filespec_dst )

Return Value

void

This has no return value.

Argument

int/string filespec_dst:

This can either be the handle returned by DBOpen(), or the name of an open file.

Example

This example shows how the DBTransfer intrinsic may be used to transfer a segment from one file to another:


define function M_CopySegment( fdin,fdout,layer_type,SegIn,poModule )
 local int SegOut
 local DBTransferInfo ti

 try
    call ti.SetDestFile(fdout)
    call ti.SetProgressCounter(ModuleProgressFunc,poModule)
    call ti.AddLayer(fdin,layer_type,SegIn,0,0)
    call ti.Transfer()
    SegOut= ti.GetNewLayerNumber(1)
    call DBSync( fdout )
 onerror
    SegOut = -1
 endonerror
 return SegOut
enddefine

See also

DBTransferInfo class

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.