DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: RemoveValues for Channel <Data>

Method: RemoveValues for Channel <Data>

Deletes the specified values from a channel. DIAdem moves up the subsequent values.

Object.RemoveValues([Index], [Count])
ObjectChannel <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 a channel:

VBScriptPython

 

Dim oMyChannel
Set oMyChannel = Data.Root.ActiveChannelGroup.Channels(1)
Call oMyChannel.RemoveValues(3, 4)
In This Section
Was this information helpful?