Appends a new field to a newly created Shapefile or DBF file.
object.Append ( Name, Type [,DefinedSize] [,NumericScale] ) |
- Name
- Required. A String that specifies the name of the new field.
- Type
- Required. A Long that specifies the data type of the new field.
- DefinedSize
- Optional. A Long that specifies the declared size, in characters or bytes, of the new field.
- NumericScale
- Optional. A Long that specifies the scale of numeric values of the new field.
Name is a string specifying the name of the new field. Name must be a value that is unique to the Fields collection and cannot exceed 10 characters. Type is a long specifying the data type of the new field. The following Type values are supported:
Value | Type |
---|---|
129 | Text |
5 | Numeric |
7 | Date |
11 | True/False |
DefinedSize is a long specifying the declared size of the new field. If left out, a default value which is derived from Type is used. [Optional].
NumericScale is a long specifying the scale of numeric values of the new field. Only specify a NumericScale for numeric fields. If left out, a default value of 0 is used. [Optional].