Which statement inside for Next structure is used to provide an alternative way to exit?
Share
Which statement inside for Next structure is used to provide an alternative way to exit?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
Any number of Exit For statements may be placed anywhere in the loop as an alternate way to exit. Exit For is often used after evaluating some condition, for example If Then, and transfers control to the statement immediately following Next.