home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / bit / listserv / dbasel / 1445 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.0 KB

  1. Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!topaz.ucq.edu.au!leovacd
  2. From: leovacd@topaz.ucq.edu.au
  3. Newsgroups: bit.listserv.dbase-l
  4. Subject: Re: question on LOOP
  5. Message-ID: <1993Jan12.095417.13185@topaz.ucq.edu.au>
  6. Date: 12 Jan 93 09:54:17 AET
  7. Organization: University of Central Queensland, Australia
  8. Lines: 40
  9.  
  10. Try this, Tom
  11.  
  12. flag = .f.
  13. DO WHILE .T.
  14.  ...
  15.  ...
  16.  ...
  17.     DO WHILE .NOT. FOUND()
  18.          ...
  19.          ...
  20.          ...
  21.            IF ....
  22.               flag = .t.
  23.               exit
  24.               ** LOOP  && To outside loop
  25.            ELSE
  26.               ...
  27.               ...
  28.               ...
  29.               IF ...
  30.                   LOOP  && To inside loop
  31.               ENDIF
  32.            ENDIF
  33.     ENDDO
  34.     if flag
  35.        flag = .f.
  36.        loop
  37.     endif
  38. ENDDO
  39.  
  40. >How can I cause my first LOOP to loop to the outside DO...WHILE loop
  41. >instead of to the inside one?  Thanks in advance for any help!
  42.  
  43. It is not regular. You have to make program flow get out from one loop
  44. and then check the variable status in outside loop.
  45.  
  46. Regards,
  47.  
  48. Gino
  49.  
  50.