how would i be able to stop a for/next loop with an if statement?
basically saying
for x = 1 to 40
print examplearray(x)
if examplearray(x) = "example string" then
EXIT LOOP
next
realli the only thing that matters is the bit in caps
i tried this statement in the for next loop:
if something = something then
next
but that just came up with the "next without for" error
next is the only way i know to end a for/next loop but is there another way that i can exit it like halfway through the loop with an if statement or something
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe