📚 SAP Business One SDK Help

Remove Method
See Also  Example
Index
The index of the column to remove

Description

Removes a Column object from the collection.

Syntax

Visual Basic
Public Sub Remove( _
   ByVal Index As Variant _
) 

Parameters

Index
The index of the column to remove

Remarks

You can only remove columns:

  • In system forms
  • In matrix objects whose data has not been loaded

Example

(Visual Basic)Copy Code
Set oItem = oForm.Items.Add("Matrix1", it_MATRIX)
Set oColumn = oColumns.Add("G", it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Linked to no object"
oColumn.Width = 40
oColumn.Editable = True
Call oColumns.Remove("G") '// also possible with column index

See Also