.NET
•  Greatis •  Security •  AppDatabase •  Utilities •  Delphi/CB • Visual Basic •  just4fun
.NET Software
.NET Components for Visual Studio .NET, Delphi 8, Delphi 2005 and Delphi 2006
 .NET     Entire site
More Info
Delphi to C#
Index

.NET
Form Designer .NET

See also
Delphi VCL software
Visual Basic 6 software
Hot Offer

Form Desigber .Net

Delphi to C#
Language
repeat...until loop

  Delphi  

       repeat...until loop executes the code till the control condition is False. The following loop will execute until user will enter the 'exit' in the console input:
repeat
  Readln(S);
  // some processing of S string
until S='exit';
Important feature of repeat...until loop is checking the control condition after first iteration, so the loop code will execute at leat one time.
 
 
  C#

do...while loop does exactly the same, but exits by the true in condition.
do 
{ 
  s = Console.ReadLine();
  // some processing of s string
}
while ( s != "exit" );

Lost features     
Added features
Warnings Do not forget to inverse condition.
Additional information

 
 


Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2009 Greatis Software

eXTReMe Tracker