TRANSCOLTOROW action


Function
The action copies values of given column of one local structured variable to the given row of another local structured variable.
Declaration
 TRANSCOLTOROW _src^_iColSrc, _dst[_row]^_iColDst

Parameters
_src in RECORD type - sources structure.
_iColSrc in INT type - index of source structure column.
_dst in RECORD type - destination structure.
_row in INT type - destination row index.
_iColDst in INT type - index of destination structure column.

Description
The action internally performs the following activity:
 
; TRANSCOLTOROW _src^_iColSrc, _dst[_row]^_iColDst
 INT _iRow
 INT _iCol
 
 
 _iCol := _iColDst
 FOR _iRow = 1 TO _src\DIM DO_LOOP
 _dst[_row]^_iCol:= _src[_iRow]^_iColSrc TIME _src[_iRow]^_iColSrc\TIM
 
 _iCol := _iCol + 1
 END_LOOP

Example
Values of the local structured variables _src and _dst before execution of the action TRANSCOLTOROW _src^C2, _dst[2]^C3:

After execution of the action:



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ť .