Exit Loop

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Exit Loop

1,637件の閲覧回数
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 返信

633件の閲覧回数
J2MEJediMaster
Specialist I
Palm programming issues are now handled by Palm. Please follow this link to obtain Palm-specific developer support.

---Tom
0 件の賞賛
返信