DIAdem Help

Method: Swap for DirectAccessChannels

  • Updated2024-09-12
  • 1 minute(s) read

Method: Swap for DirectAccessChannels

Moves an DirectAccess channel to a specific position.

Object.Swap(Index1, Index2)
ObjectDirectAccessChannels
Object with this method
Index1LongInteger
Specifies the position of the DirectAccess channel.
Index2LongInteger
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)

Log in to get a better experience