Method: Swap for DirectCellChannels
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Swap for DirectCellChannels
Method: Swap for DirectCellChannels
Moves an DirectAccess channel to a specific position.
Object.Swap(DAChnIndex1, DAChnIndex2)
| Object | DirectCellChannels Object with this method |
| DAChnIndex1 | LongInteger Specifies the position of the DirectAccess channel. |
| DAChnIndex2 | LongInteger Specifies the position of the DirectAccess channel. |
The following example shows how you interchange the positions of the channels YShift and XShift:
Call oCellBlock.Channels.Swap(oCellBlock.Channels("YShift").Index, oCellBlock.Channels("XShift").Index)