Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 13th, 2006, 02:36 AM
Authorized User
 
Join Date: Jan 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default break statement

wat do you use instead of break statement in vb.net im new to vb.net

if(Condition1==true)
{
some statement
break;
}
else
{
statement
break;
}


 
Old December 26th, 2006, 08:25 AM
Authorized User
 
Join Date: Dec 2006
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sunnys Send a message via Yahoo to Sunnys
Default

hi,
it dose not required break statement. when compiler find condition1==true it will go inside if statement otherwise go to else and execute the statement & come out.

 
Old December 26th, 2006, 09:37 AM
Friend of Wrox
 
Join Date: Aug 2006
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

Break statement is used to come out of loop basically like in for loop and while loop etc or it is used in switch case construct mostly
so the code which u have written break will be applicable if u are using switch case


thanks......





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why there isn't a "break"? XVenus Java Basics 1 September 4th, 2007 06:37 AM
help with 'break' Manu Sharma Beginning PHP 3 March 15th, 2007 09:04 PM
how do i break it up? kuehhc Beginning PHP 3 January 19th, 2005 09:52 AM
Unable to Break at Break point Girishbk VB.NET 2002/2003 Basics 0 January 18th, 2005 08:29 AM
Page Break aspadda Excel VBA 0 February 9th, 2004 02:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.