Just moved over to the VB team here at work.
Quick easy one for my 1st question.
What is the equivalent keyword to break
in VB, i.e., to exit a loop early but not the method?
Cheers!
Just moved over to the VB team here at work.
Quick easy one for my 1st question.
What is the equivalent keyword to break
in VB, i.e., to exit a loop early but not the method?
Cheers!
In both VB6 and VB.Net you would use:
Exit For
or
Exit While
or
Exit Do
... depending on the loop type.
Exit [construct], and intelisense will tell you which one(s) are valid in a particular place.