yeah..
first initialize a variable in frmOpenevent;
Formhandleevent()
{
case fromOpenEvent:
startLoop = true;
....
....
break;
case nilEvent:
//add ur code which is in loop earlier
break;
case ctlSelectEvent:
startloop = false;
break;
}
//In EventLoop function place this code
EventLoop()
{
do{
if(startLoop)
wait = 1;
else
wait = evtWaitForever;
EvtGetEvent(&event,wait);
if(!SysHandleEvent(&event))
if(!MenuHandleEvent(0, &event, &error))
if(!ApplicationHandleEvent(&event))
FrmDispatchEvent(&event);
}while (event.eType != appStopEvent);
}
Hope this works for you
regards
PrasadB
-----Original Message-----
From: Hemamalini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:10 AM
To: Palm Developer Forum
Subject: Re: In a loop is it possible to use button
thank u for ur mail.u mean instead of using frmopenevent ,we can use
nilevent.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 1:17 PM
Subject: RE: In a loop is it possible to use button
>
> U can use nil event to get this functionality. put your code in nil event.
>
> Prasad
> -----Original Message-----
> From: Hemamalini [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 18, 2003 8:47 AM
> To: Palm Developer Forum
> Subject: In a loop is it possible to use button
>
>
> Hello,
> In FrmOpenEvent i doing a loop function.i have a stop button.how
can
> i use the stop button in loop function. can i use ctlselectevent in loop
> funtction. is there any other way to exit from loop
> Thank you in advance,
> Hema
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/