home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!howland.reston.ans.net!paladin.american.edu!auvm!CC.MSSTATE.EDU!JGB1
- Message-ID: <9301112149.AA01302@JayRell.CC.MsState.Edu>
- Newsgroups: bit.listserv.dbase-l
- Date: Mon, 11 Jan 1993 15:49:47 CST
- Sender: "Discussion on the use of the dBase language and related
- dialects" <DBASE-L@NMSUVM1.BITNET>
- From: John G 'Jay' Burrell <jgb1@CC.MSSTATE.EDU>
- Subject: Re: Question on LOOP
- Lines: 56
-
- > From DBASE-L@TECMTYVM.MTY.ITESM.MX Mon Jan 11 15:39:26 1993
- > Date: Mon, 11 Jan 1993 16:35:01 -0500
- > Reply-To: "Discussion on the use of the dBase language and related
- > dialects" <DBASE-L@TECMTYVM.BITNET>
- > Sender: "Discussion on the use of the dBase language and related
- > dialects" <DBASE-L@TECMTYVM.BITNET>
- > Subject: Question on LOOP
- > To: Multiple recipients of list DBASE-L <DBASE-L@TECMTYVM.BITNET>
- > Content-Length: 889
- > X-Lines: 34
- >
- > Question on LOOP
- > I've using FoxBase+/Mac, trying to develop a program for one of my
- > offices, but this should be a generic enough question to apply to any
- > XBase dialect. Sorry if this is a FAQ, but I can't figure out how to
- > do a simple task in my program:
- >
- > During the course of my program I have:
- >
- > DO WHILE .T.
- > ...
- > ...
- > ...
- > DO WHILE .NOT. FOUND()
- > ...
- > ...
- > ...
- > IF ....
- > LOOP && To outside loop <<<<=== EXIT, not LOOP! >>,
- > ELSE |
- > ... |
- > ... |
- > ... |
- > IF ... |
- > LOOP && To inside loop |
- > ENDIF |
- > ENDIF |
- > ENDDO |
- > ENDDO <<<<<<===================================================='
- >
- > How can I cause my first LOOP to loop to the outside DO...WHILE loop
- > instead of to the inside one? Thanks in advance for any help!
- >
- >
-
- EXIT will exit the nested loop only, allowing control to remain in the
- outside loop!
-
- See changes in your code above...
-
- Enjoy!
-
-
- Jay Burrell E-Mail: jgb1@CC.MsState.Edu
- Computing Center & Services Voice: (601) 325-7025
- Mississippi State University Fax: (601) 355-8921
-