How do I break a "while" loop.....

Hi.

I've done a loop ,writing a text.


ex....


while.......


"here i'm writing "text"


And when I've finished writing ,i whant to exit this loop

whith a commad.....I've tried with "defined F1" ,but

nothing seems to work.

Notice that I store the characters in arrays in the same time.




Can someone help me.


Thanks in advance.

steven.







Comments

  • : Hi.

    : I've done a loop ,writing a text.


    : ex....


    : while.......


    : "here i'm writing "text"


    : And when I've finished writing ,i whant to exit this loop

    : whith a commad.....I've tried with "defined F1" ,but

    : nothing seems to work.

    : Notice that I store the characters in arrays in the same time.


    :

    : Can someone help me.


    : Thanks in advance.

    : steven.


    You answered your own question the command to exit a loop is

    break;




    Dave







  • : You answered your own question the command to exit a loop is

    : break;




    Or you could fall out of the loop by failing the condition of the while... sometimes this is practical, sometimes it isn't.





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories