PC Review


Reply
 
 
=?Utf-8?B?dml2bWFoYQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
What's VBA's break keyword? (like in java, break jumps out of the current
loop).

 
Reply With Quote
 
 
 
 
=?Utf-8?B?dml2bWFoYQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
exit sub, exit for, exit do, ...

"vivmaha" wrote:

> What's VBA's break keyword? (like in java, break jumps out of the current
> loop).
>

 
Reply With Quote
 
=?Utf-8?B?V2lnaQ==?=
Guest
Posts: n/a
 
      13th Jul 2007
Goto can also be used, but use it wisely, or you get spaghetti-code


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music
:

"vivmaha" wrote:

> exit sub, exit for, exit do, ...
>
> "vivmaha" wrote:
>
> > What's VBA's break keyword? (like in java, break jumps out of the current
> > loop).
> >

 
Reply With Quote
 
=?Utf-8?B?dml2bWFoYQ==?=
Guest
Posts: n/a
 
      13th Jul 2007
Yeah, i'll avoid goto.

Check what dijkstra had to say about it: http://www.acm.org/classics/oct95/

"Wigi" wrote:

> Goto can also be used, but use it wisely, or you get spaghetti-code
>
>
> --
> Wigi
> http://www.wimgielis.be = Excel/VBA, soccer and music
> :
>
> "vivmaha" wrote:
>
> > exit sub, exit for, exit do, ...
> >
> > "vivmaha" wrote:
> >
> > > What's VBA's break keyword? (like in java, break jumps out of the current
> > > loop).
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL2003 VBA: Debuging...can not break or run in break/step mode. Conan Kelly Microsoft Excel Programming 1 23rd Aug 2008 11:51 AM
Word 2007 - Where is Insert | Break | Text Wrapping Break? EDembicki Microsoft Word Document Management 5 12th Jul 2008 07:28 PM
Re: Word 2003 Section Break Page Break Chad DeMeyer Microsoft Word Document Management 0 11th Aug 2004 06:40 PM
Re: Word 2003 Section Break Page Break Bill Foley Microsoft Word Document Management 0 11th Aug 2004 06:39 PM
add page break code in csv file to force break when loading. tim Microsoft Excel Misc 3 1st Apr 2004 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 PM.