VERIFIED SOLUTION i
X

How to remove a temporary column added via a Table.AddColumns call in MapXtreme .NET

UPDATED: October 12, 2017


You need to add the aliases of the temporary column to the stringcollection that you are passing in the TblLayer.DropColumns call.

The code should look somewhat like this.

Dim KoldiHapus As New StringCollection()
For i As Byte = 0 To TblLayer.TableInfo.Columns.Count - 1
If TblLayer.TableInfo.Columns(i).ColumnType = ColumnType.TemporaryPhysical Then
KoldiHapus.Add(TblLayer.TableInfo.Columns(i).Alias)
End If

TblLayer.DropColumns(KoldiHapus)

Environment Details

Product Feature: Thematics

 

Downloads

  • No Downloads