c-treeDB API for C# - Developers Guide
CTTable.AddField
Syntax
CTField AddField( String Name, FIELD_TYPE Type, int Length)
Parameters
- Name [in] - The field name to add to the table
- Type [in] - The field type. Valid field type values are shown in the "Field Types".
- Length [in] - The field length, the maximum length of [VAR]CHAR or [VAR]BINARY field in bytes (64K max). Set to 0 for "unlimited" (2GB) LVARCHAR.
Description
Adds a new field to table.
Return
AddField() returns a field object on success or NULL on failure.
See Also
AddIndex(), DelField(), GetField(), InsertField()