[Previous]
[Bookset]
[Next]

ApCloseDBase()

Close a widget database

Synopsis:

#include <Ap.h>

int ApCloseDBase( ApDBase_t *db );

Description:

ApCloseDBase() closes a widget database that has been opened with ApOpenDBase() or ApOpenDBaseFile().

Closing a widget database deallocates its memory. If you're finished using a widget database, close it to free up the memory.

Returns:

0
Successful completion

Examples:

ApDBase_t       *mydbase;

mydbase = ApOpenDBase( ABM_mypicture );

ApCreateWidget( mydbase, "this_widget", 10, 10, 0, NULL );
ApCreateWidget( mydbase, "that_widget", 50, 10, 0, NULL );

ApCloseDBase( mydbase );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApOpenDBase(), ApOpenDBaseFile()


[Previous]
[Bookset]
[Next]