10202 : I just need to know how I identify which time items are owned by a column and then how to them.

Question

I just need to know how I identify which time items are owned by a column and then how to delete them.

Answer

For i = 0 To phSchemaX1.Layers.Count – 1
  Set layer = phSchemaX1.Layers.DataList(i)
  For ii = layer.Count – 1 To 0 step by -1 ‘ Since I am removing items I must step backwards in order to avoid messing up indices
    Set aSchemaTime = layer.Items(ii)
    IF aSchemaTime.Col=aColumnIndexThatIWantToRemoveAllTimesFrom then
      phSchemaX1.RemoveSchemaTime(aSchemaTime)
    end if
  Next ii
Next i

Leave a Reply