Jump to content

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


jjohn
 Share

Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...