COPYCOL

COPYCOL

COPYCOL action


Function

The action copies values between two columns of two local structures.

Declaration

COPYCOL _srcCol, _dstCol

 

Parameters

_srcCol

in/out

Reference to a source column used when copying.

_dstCol

in

Reference to a destination column used when copying - Record, type ALIAS, object Structured variable.

 

Description

The action evaluates neither the item, which the parameter _dstCol points to, nor possible indexes used in the parameters _srcCol and  _dstCol. For these parameters is important the column, which they point to. If the structure _dstCol does not contain the required number of rows, the action executes internally the action REDIM.

Example

RECORD (SD.RecordDef) _src RECORD (SD.DbStruct) _dst REDIM _src[10] ... ; Copying values from the column src^Int into the column_dst^Int ; The action executes internally the command REDIM _dst[_src\DIM] COPYCOL _src^Int, _dst^Int

 


Related pages:

Script actions