DBsignaturGetTableName

Top  Previous  Next

Delivers the table name.

Every signature table is stored under a name. With this function the suitable name is determined to the table.

Parametre

root (PROOT) [IN]

Act on the open data bank.

tableNum (int) [IN]

The key tableNum gives the signature table. If the key value lies beyond the borders, becomes the error message MOSKITO_ERROR_INVALID_PARAM zurückgeliefert. The permissible values are from 1 to 10. If the table exists, however, has no valid value, becomes MOSKITO_ERROR_NO_SIGNATUR_TABLE zurückgeliefert.

name (char *) [IN / OUT]

In the variable name the table name is stored. For enough storage space must be provided before call of the function.

Result

(T_ERROR) [OUT]

By perfect implementation becomes the constant ERROR_OK zurückgeliefert and in name then the table name stands. If the key value lies beyond the borders, becomes MOSKITO_ERROR_INVALID_PARAM zurückgeliefert. If the constant MOSKITO_ERROR_NO_SIGNATUR_TABLE zurückgeliefert becomes, the table had no valid value.

Declaration

#include "database.h"

 

T_ERROR DLLENTRY DBsignaturGetTableName (

PROOT root,

int tableNum,

char * name

);

Constants

MOSKITO_ERROR_INVALID_PARAM

MOSKITO_ERROR_NO_SIGNATUR_TABLE

Related functions

DBsignaturAddAreakeyEntry

DBsignaturAddDrawingkeyEntry

DBsignaturDeleteAreakeyEntry

DBsignaturDeleteDrawingkeyEntry

DBsignaturDeleteTable

DBsignaturFindDrawingkeyEntry

DBsignaturReturnAreakeyEntry

DBsignaturReturnDrawingkeyEntry

DBsignaturSetTableName