DIAdem Help

Method: RemoveValues for AssignmentChannel <Data>

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

Method: RemoveValues for AssignmentChannel <Data>

Deletes the specified values from an assignment channel. DIAdem moves up the subsequent values.

Object.RemoveValues([Index], [Count])
ObjectAssignmentChannel <Data>
Object with this method
[Index]LongInteger
Specifies the position of the first value to delete. The index starts at the value 1 (default value).
[Count]LongInteger
Specifies the number of values to delete. The default value is the channel length minus the index plus 1.

Starting at the third value, the following example deletes the next four values of an assignment channel:

VBScriptPython

 

Dim oMyChn
Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\Report_expl.tdm")
Set oMyChn = Data.Root.ChannelGroups(6).Channels(4)
Call oMyChn.RemoveValues(3, 4)

Log in to get a better experience