Help ! (Newbie)

Postby pacamilo on Fri Apr 05, 2002 2:55 pm

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 ?
pacamilo
 
Posts: 5
Joined: Fri Apr 05, 2002 12:25 pm
Location: Portugal

Postby samps on Fri Apr 05, 2002 9:35 pm

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
Ubuntu user #82
samps
 
Posts: 143
Joined: Tue Feb 20, 2001 12:33 am
Location: Australia

Postby pacamilo on Mon Apr 08, 2002 6:44 am

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 ?
pacamilo
 
Posts: 5
Joined: Fri Apr 05, 2002 12:25 pm
Location: Portugal


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 1 guest

cron