Exit Loop

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Exit Loop

1,529 次查看
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

标签 (1)
0 项奖励
回复
1 回复

525 次查看
J2MEJediMaster
Specialist I
Palm programming issues are now handled by Palm. Please follow this link to obtain Palm-specific developer support.

---Tom
0 项奖励
回复