c-treeDB API for C++ - Developers Guide
CTTable::AddField
Syntax
CTField AddField(const CTString& Name, CTDBTYPE Type, VRLEN 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
InsertField(), DelField(), GetField(), AddIndex()