COPYCOLIDX action


Function
The action copies values between two columns of two local structures.
Declaration
 COPYCOLIDX _src, _srcColIdx, _dst, _dstColIdx
Parameters
_srcinLocal structure identifier determining a source structure used when copying.
_srcColIdxinIdentifier of Int type.
_dstoutLocal structure identifier determining a target structure when copying - Record, type ALIAS, object Structured variable.
_dstColIdxinIdentifier of Int type.
Description
The action (analogous to COPYCOL) copies the column of the structure  _src which is given by the sequential number _srcColIdx into the column of the local structure _dst which is given by the sequential number _dstColIdx. If the structure _dst do not contain required number of rows, the action internally executes the command 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 internally executes the action REDIM _dst[_src\DIM]
 
COPYCOLIDX _src, 2, _dst, 2 

Related pages:

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .