Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

For Each ... Next Exit For prblem

Status
Not open for further replies.

happyabc

IS-IT--Management
Mar 10, 2004
164
IN
In a For Each ... Loop an Exit For statement is not exiting the loop ( I have used a GOTO as a patch for the moment ). But why should this be so? Could it be that Exit For is valid only on For ... Next loops?
 
Hi,

Please post your code.

Skip,

[glasses] [red]Be advised:[/red] It's been reported that a wee psychic is roaming the countryside.
Small Medium @ Large! [tongue]
 
It certainly ought to work. As Skip suggests, let's have a look at your codee.
 
Place a breakpoint on the Exit For. Does it ever trigger? Sounds like a bug rather than a sudden failing of VB.

mmilan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top