hey!
here is an interesting problem i have.. i ask for a database
to be removed.. and wola.. it is still there? :P
any ideas? am i forgetting something?
---
void
_DB_deleteDatabase(BytePtr index)
{
Err error;
// make sure it is NOT the original
if (!_DB_isOriginal(index)) {
// if it is the current database, close it first
if ((*index) == currentDB) {
DmCloseDatabase(lodeDB);
}
// remove it
error = DmDeleteDatabase(databases[(*index)].card,
databases[(*index)].DBid);
ErrFatalDisplayIf(error, "Could not remove database.");
}
else {
FrmAlert(originalAlert);
}
}
---
cheers.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 352 8192 A/H: +46 26 10 16 11