jjohn Posted January 2, 2006 Share Posted January 2, 2006 I encountered this problem, when I use "If @error = -1 then..." within a while..Wend loop, I have to put it in 1 line, otherwise compiler will say no match of while for Wend error. sample error code: ------------------------------------------------- While 1 if @error = -1 then msgbox(4096,"","hi") end if WEnd ------------------------------------------------- Please help Link to comment Share on other sites More sharing options...
jpm Posted January 2, 2006 Share Posted January 2, 2006 There is no error in what you post just the "end if" must be "endif". But I assume that's not what you are looking for. Can you post exactly what you try to execute? (Cut and paste) Link to comment Share on other sites More sharing options...
w0uter Posted January 2, 2006 Share Posted January 2, 2006 autoit probly sayd no matching wend b/c the IF is still open. so i think its exactly what he was looking for My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
jjohn Posted January 3, 2006 Author Share Posted January 3, 2006 Thanks for your help, now I know why I got the error. Link to comment Share on other sites More sharing options...
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