JAG1117 Posted August 23, 2019 Posted August 23, 2019 I'm getting error "Next statement with no matching for statement. Call ("letsgo") Func letsgo () $file = "c:\scripts\phone2.txt" FileOpen($file, 0) For $i = 1 to _FileCountLines($file) $sIPAddress = "" $line = FileReadLine($file, $i) $combine = "polycom_" & $line TCPStartup() $sIPAddress = TCPNameToIP ($combine) If NOT ($sIPAddress = "") Then signIn($sIPAddress) ContinueLoop Next FileClose($file) EndFunc
Gianni Posted August 23, 2019 Posted August 23, 2019 try to change the ContinueLoop statement with an EndIf SkysLastChance 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
FrancescoDiMuro Posted August 23, 2019 Posted August 23, 2019 (edited) @JAG1117 The EndIf could be even omitted since you are executing just a single line of code, but the whole statement needs ti be written like If Condition Then SingleStatement Edited August 23, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now