How to break from loop by the cancel button in inputbox
Posted
by yael
on Stack Overflow
See other posts from Stack Overflow
or by yael
Published on 2010-06-11T07:38:57Z
Indexed on
2010/06/11
7:43 UTC
Read the original article
Hit count: 204
The following VB script check the valid IP by Test function
if we get OK from the test function then We break from loop ValidIP=OK If not the inputBox ask the question until ValidIP=OK
But sometimes I want to exit from loop by cancel button
How to break loop by the cancel button (in order to set the ValidIP as OK)
Do Until ValidIP=OK
IPrange=InputBox("Enter IP address range",,"172.17.202.1-10,192.9.200.1-100")
Test IPrange, strPattern
Loop
© Stack Overflow or respective owner