📚 SAP Business One SDK Help

Add Method
See Also 
UID
A unique ID for the column
ColFieldType
The type of field to add
DataSize

The size of the column, from 0 to 254.

Relevant for alphanummeric fields only; otherwise, the value is ignored.

Description

Adds an item to the collection.

Syntax

Visual Basic
Public Function Add( _
   ByVal UID As String, _
   ByVal ColFieldType As BoFieldsType, _
   Optional ByVal DataSize As Long = 254 _
) As DataColumn

Parameters

UID
A unique ID for the column
ColFieldType
ValueDescription
ft_NotDefinedNon-defined field
ft_AlphaNumericString field limited to 254 characters
ft_IntegerInteger field limited to numbers from −2,147,483,648 to +2,147,483,647
ft_TextString field without size limitation
ft_DateDate field
ft_FloatNumeric field
ft_ShortNumberInteger field limited to numbers from −32,768 to +32,767
ft_QuantityNumeric field whose decimal precision is defined by the Quantities administration setting.
ft_PriceNumeric field whose decimal precision is defined by the Prices administration setting.
ft_RateNumeric field whose decimal precision is defined by the Rates administration setting.
ft_MeasureNumeric field whose decimal precision is defined by the Units administration setting.
ft_SumNumeric field whose decimal precision is defined by the Amounts administration setting.
ft_PercentNumeric field whose decimal precision is defined by the Percent administration setting.
The type of field to add
DataSize

The size of the column, from 0 to 254.

Relevant for alphanummeric fields only; otherwise, the value is ignored.

See Also