Records

DB_SetActiveRecord

DB_SetActiveRecord

Description 

 DB_SetActiveRecord(
   char *Database,
   char *Table,
   char *User,
   int  DB_RecordIdx
);

This function sets the selected record as active and the next call of the DB_SetField function will use the fields in this record.

Table parameter is the table name or a table unique name. It can be NULL (0) and then the currently opened table (if it is from the selected database) will be used.

Parameters

char *Database

The name of already opened database.

char *Table

The table name or table unique name. It can be NULL (0) and then the current opened table (if it is from the selected database) will be used.

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.

int DB_RecordIdx

The index of a record ordered from 0.

See Also 
DB_SetField, DB_AppendField, DB_CreateTable, DB_AppendTable