Red5 wrote:
When using VB.NET, there is always the handy Exit For or Exit Do

I guess it's worth noting that the example I mentioned was assuming C was used for the programming language.  For most of the microcontrollers and microprocessors that I've used, C or assembly are the only options out there.