Shay Well-Known Member Licensed User Longtime User Jan 21, 2012 #1 how can I easily exit the "for" in this example for i=0 to 1000 word=myarray(i) select word case found_it exit end select I wish when "found_it" it will exit also the "for" same if I use for inside for
how can I easily exit the "for" in this example for i=0 to 1000 word=myarray(i) select word case found_it exit end select I wish when "found_it" it will exit also the "for" same if I use for inside for
NJDude Expert Licensed User Longtime User Jan 21, 2012 #2 How about: B4X: for i=0 to 1000 word=myarray(i) select word case found_it i = 1000 '<---add this exit end select Upvote 0
How about: B4X: for i=0 to 1000 word=myarray(i) select word case found_it i = 1000 '<---add this exit end select