Sign in to follow this  
Followers 0
jjohn

"If @error = -1 then" within While loop error

4 posts in this topic

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 :P

Share this post


Link to post
Share on other sites



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)

:P

Share this post


Link to post
Share on other sites

Thanks for your help, now I know why I got the error. :P

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0