Board index » delphi » Repeat- Until (simple question)
Ed Salgado
Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Repeat- Until (simple question)Quotetr...@bc.{*word*104}nex.net (Eddie) wrote: Quote>Hi, I know this is probably a question to basic to be in here, but not even the FAQs have it :). we can all learn. "Basic" is relative, what is basic to you may not be basic to someone else. So ask away! Quote>I have written a program lets say with multiple until's line up), you could see that the code you had posted was incorrect (probably wouldn't compile). I highly recommend using indentation as a way to group nested procedures. It makes error tracking much easier. Anyhow... I had to add an end (indentified with !!ES) to make your example compilable. Quote>this program makes has no point to it and will just keep asking for the same both until 1=1 and until 2=2 create end-less loops which in this example would never break out of. To break out of one of these loops you would need to add a break call. To wit: Quote> repeat a more descriptive example and I'ld be happy to look at it. Quote>Thanks for any help, and I am sorry Good Luck, -Ed Salgado |