AddField

<< Click to Display Table of Contents >>

 

AddField

AddField([Name], [SourceLink], [Type], [Size])

This method adds a new Historic Field on the Fields object and returns this object. In case of error, this method returns Nothing. All parameters for this method are optional. The next table contains a description for each one of these parameters.

Parameters of the AddField method

Parameter

Description

Name

Historic Field's name. If this parameter is omitted, this name receives the expression "Field" and is auto-incremented, if needed. This parameter corresponds to the Historic Field's Name property. Please check the general Name property for more information about the allowed characters on the names of objects

SourceLink

Historic Field's data source. If this parameter is omitted, its data source receives an empty String. This parameter corresponds to the Historic Field's Link property

Type

Historic Field's data type. If this parameter is omitted, its data type is configured as 1: Integer. This parameter corresponds to the Historic Field's Type property

Size

Historic Field's size. If this parameter is omitted, the Field's size receives the value 0 (zero). This parameter corresponds to the Historic Field's Size property

 

NOTE

For Historic objects whose Database table is created by users, this method returns an error.

Was this page useful?