Method: RemoveValues for AssignmentChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: RemoveValues for AssignmentChannel <Data>
Method: RemoveValues for AssignmentChannel <Data>
Deletes the specified values from an assignment channel. DIAdem moves up the subsequent values.
Object.RemoveValues([Index], [Count])
Object | AssignmentChannel <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:
VBScript | Python |
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)