>* on VFP, IMPLEMENT this classic programming loop >DO LOOP > <a long sequence of commands> >ENDLOOP <condition> && exit when this is not true
1. Do while not <condition>. <a long sequence of commands> EndDo>
>DO WHILE .T. > <a long sequence of commands> > IF <condition> > EXIT > ENDIF >ENDDO >
2. Same as 1?>* this not uses EXIT, but you have to duplicate the commands or put these into a procedure
><a long sequence of commands> >DO WHILE <condition> > <a long sequence of commands> >ENDDO >>
>lLoop = .T. >DO WHILE m.lLoop > <a long sequence of commands> > lLoop = <condition> >ENDDO >>Now I use my metric, and say:
>DO WHILE <condition1> > <a long sequence1 of commands> > IF <condition2> > EXIT > ENDIF > <a long sequence2 of commands> >ENDDO > >* implement this into VFP >..... >>
3. Do while <condition1> ; and not <condition2> <a long sequence1 of commands> If not <condition2> <a long sequence2 of commands> EndIf EndDo>Now I make you to anger.
AND HOW!!!>
>DO WHILE <condition1> > <a long sequence1 of commands> > DO WHILE <condition2> > <a long sequence2 of commands> > IF <condition3> > LOOP 1 > ENDIF > <a long sequence3 of commands> > ENDDO > <a long sequence4 of commands> >ENDDO && LOOP 1 go here > >* implement this into VFP >..... >
4. Do while <condition1> <a long sequence1 of commands> Do while <condition2> ; and not <condition3> <a long sequence2 of commands> If not <condition3> <a long sequence3 of commands> Endif EndDo while <condition2> If not <condition3> <a long sequence4 of commands> Endif EndDo>