DIAdem Help

Method: Remove for Columns

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

Method: Remove for Columns

Removes, in a DataFinder or a data store, a column from the search results.

Object.Remove(Index)
ObjectColumns
Object with this method
IndexLongInteger
Specifies the index of the column that is to be removed.
Note  If you run a search, DIAdem automatically generates new columns. You only can modify the columns that you have added manually.

The following example removes all columns from the search results which contain channel properties. 

VBScriptPython

 

Dim oMyResultsList, Column, Index
Set oMyResultsList = Navigator.Display.CurrDataFinder.ResultsList
Index = 1
For Each Column in oMyResultsList.Columns 
  If Column.Type = eSearchChannel Then
    oMyResultsList.Columns.Remove(Index)
  Else
    Index = Index + 1
  End If
Next