Exit Loop

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Exit Loop

1,289 Views
bazza
Contributor I

I am using CW for Palm to create a project which needs loops.

My project has two loops, one nested inside the other.

There is an Abort button and I have put the following code inside the innermost loop which is basically a timer:

EvtGetEvent (&event, 5);

if( event.eType == penDownEvent)

{tester = 1;

return;}

Then in the other loop I have:

EvtGetEvent (&event, 5);

if (event.screenY < 132) continue;

else if (tester = 1)

{tester = 0;

FrmGotoForm (WelcomeForm);

CurrentView = WelcomeForm;

return errNone;}

This gets the job done OK but I would appreciate any advice as to whether this is acceptable method.

I really don't know of any other way to get out of the loop.

Regards,

Barry

Labels (1)
0 Kudos
Reply
1 Reply

285 Views
J2MEJediMaster
Specialist I
Palm programming issues are now handled by Palm. Please follow this link to obtain Palm-specific developer support.

---Tom
0 Kudos
Reply