DBgdvOpen

Top  Previous  Next

If opens an existing plan management.

Before plans from a plan management can be loaded, this must be opened, i.e. the name of the plan management which should be applied must be announced to the data bank. Furthermore it is given whether the data of the plan management can be changed. This does not concern the plans. Plans can be changed in a write protected plan management, but no new plans can be inserted in this plan management.

Parametre

root (PROOT) [IN]

The trading of the data bank in which the plan management should be opened.

name (char *) [IN]

The name of the plan management which should be opened. The plan management must already exist, a new plan management is generated with DBgdvNewDatabase.

isWriteble (int) [IN]

Gives whether the user wants to admit changes in the plan management.

Result

(T_ERROR) [OUT]

If the plan management was opened successfully, ERROR_OK is returned. In case of a mistake the suitable mistake number from the file error.h is returned. The most frequent mistake might be that already a plan management was opened.

Declaration

#include "database.h"

 

T_ERROR DLLENTRY DBgdvOpen (

PROOT root,

char * name,

int isWriteble

);