Tables

_DB_ModifyTable, _DB_NewTable, _DB_RemoveTable, DB_AppendTable, DB_CreateTable, DB_GetCurrentTableName, DB_GetCurrentTableUName

DB_AppendTable

Description 

 DB_AppendTable(
   int64  DB_TableHandle
);

This function performs final step in creating new table and practically creates table itself using data in handle returned by DB_CreateTable and then filled by DB_AppendField function.

Parameters

int64 DB_TableHandle

Handle returned by DB_CreateTable function.

See Also 
DB_AppendField, DB_CreateTable

DB_CreateTable

Description 

int64 DB_CreateTable(
   char *Database,
   char *User,
   char *Table,
   char *DB_Description
);

This function performs the first step of creating a new table and returns the handle which must be used with the DB_AppendField and DB_AppendTable functions to get a successful result.

Parameters

char *Database

The name of already opened database.

char *User

The user (account) name for the database. It can be NULL (0) and then the user name will be retrieved from the list of opened sessions according to the database name.

char *Table

Name of the database table.

char *DB_Description

The table description.

Return Values

int64

The function returns the handle of the table.

See Also 
DB_AppendField, DB_AppendTable

DB_GetCurrentTableName

Description 

 DB_GetCurrentTableName(
   char *DB_TableName,
   int  DB_TableNameSize
);

This function retrieves the name of the table that is opened in the active organizer pane currently.

Parameters

char *DB_TableName

Buffer to store table name.

int DB_TableNameSize

Size of the buffer.

See Also 
DB_GetCurrentTableUName

DB_GetCurrentTableUName

Description 

 DB_GetCurrentTableUName(
   char *DB_TableID,
   int  DB_TableIDSize
);

This function retrieves a unique name of the table that is currently opened in the active organizer pane.

Parameters

char *DB_TableID

Buffer to store table unique name.

int DB_TableIDSize

Size of the buffer.

See Also 
DB_GetCurrentTableName

_DB_ModifyTable

This function runs the Database > Modify Table command.

Description 

 _DB_ModifyTable();

This function displays the Tables dialog box to enable choice of any modifiable table and change its fields or other properties.

See Also 
_DB_NewTable, _DB_RemoveTable

_DB_NewTable

This function runs the Database > New Table command.

Description 

 _DB_NewTable();

This function starts a wizard which specifies the table name, fields, etc.

See Also 
_DB_ModifyTable, _DB_RemoveTable

_DB_RemoveTable

This function runs the Database > Remove Table command.

Description 

 _DB_RemoveTable();

This function displays the Tables dialog box to enable choice of a table to remove.

See Also 
_DB_NewTable, _DB_ModifyTable