DIAdem Help

Method: Sort for Channels <Data>

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

Method: Sort for Channels <Data>

Sorts the channels of a channel group in the Data Portal alphabetically in the script interface for internal data.

Object.Sort(Sorting, [UseChnXRelations])
ObjectChannels <Data>
Object with this method
Sorting
 1
eSortAlphaAscending 
Alphabetically ascending
 2
eSortAlphaDescending 
Alphabetically descending
[UseChnXRelations]Boolean
Specifies whether DIAdem uses the xy-channel references.

If the value is TRUE and the first channel is the only x-channel in the channel group to which all other channels in the channel group refer as y-channels, DIAdem does not include the first channel in the sort. The first channel remains in the first position.
If the value is FALSE, DIAdem sorts all channels alphabetically in ascending or descending order.

The following example sorts the channels of the first channel groups alphabetically in ascending order:

VBScriptPython

 

Dim oMyChannels
Set oMyChannels = Data.Root.ChannelGroups(1).Channels
Call oMyChannels.Sort(eSortAlphaAscending, True)

Log in to get a better experience