Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

COPYCOLIDX action


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


Blok kódu
languageesl
themeConfluence
 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:


Blok kódu
languageesl
themeRDark
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 

Info
titleRelated pages:

Script actions