How to break from loop by the cancel button in inputbox
- by yael
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