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