Page 1 of 1

PostPosted: Fri Apr 05, 2002 2:55 pm
by pacamilo
I need some help on the dbopen function. How can I use it to open the datebookDB?
I'm using this lines of code:

AbrirAgenda()
begin
int handle;
handle=dbopen("DatebookDB");
if (handle!=0)
begin
text(0,0,handle);
dbclose();
end
else
begin
text(0,0,"Erro !");
end
event(1);
end

...and it always runs the else thread.

Can you help me ?

PostPosted: Fri Apr 05, 2002 9:35 pm
by samps
Pacamilo

I swapped your Pascal-like BEGIN's and END's for the more C-right { and }'s, and then the code you supplied works as intended.

cheers
Samps

PostPosted: Mon Apr 08, 2002 6:44 am
by pacamilo
Sorry, No !
I #defined begin and end to {} since I'm not used to use the ALT GR key.

But how I expect, the code doesn't work either. Can you (continue to) help me ?