flushevent() in Palm OS PocketC???

Discuss PocketC for Palm OS (including Desktop Edition)

flushevent() in Palm OS PocketC???

Postby Yamagushi on Thu Sep 18, 2008 7:24 pm

I need a code like flushevent() that will clear the event queue. PocketCE PocketC can use the flushevent command, Palm PocketC can't. Can anyone please help me, this is driving me nuts...
Yamagushi
 
Posts: 4
Joined: Mon Sep 01, 2008 8:43 pm

Re: flushevent() in Palm OS PocketC???

Postby samps on Fri Sep 19, 2008 12:38 am

Would a calling a loop like this do what you have in mind.

It keeps taking events from the stack until the return code turns to '0', no more events.

Code: Select all
while ( event(0) 1!= 0 ) ;


Samps
samps
 
Posts: 143
Joined: Tue Feb 20, 2001 12:33 am
Location: Australia

Re: flushevent() in Palm OS PocketC???

Postby Yamagushi on Fri Sep 19, 2008 12:57 am

while(event(0) != 0); worked perfectly ^_^ much love brotha
Yamagushi
 
Posts: 4
Joined: Mon Sep 01, 2008 8:43 pm


Return to PocketC for Palm OS

Who is online

Users browsing this forum: No registered users and 4 guests

cron