Method: Swap for BinaryDirectAccessChannels
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Swap for BinaryDirectAccessChannels
Method: Swap for BinaryDirectAccessChannels
Moves a DirectAccess channel to a specific position.
Object.Swap(Index1, Index2)
| Object | BinaryDirectAccessChannels Object with this method |
| Index1 | LongInteger Specifies the position of the channel. |
| Index2 | LongInteger Specifies the new position of the 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)