Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#err usage
#1
Hi, i am pretty new to all of this and had a question:
My macro crashes and ends when lef command throws error "point outside the window". This happens when focus switches from the app, where the macro is suppose to run, to other window. I've found the err command but trying to figure out how to use it. Basically what i want it to do is: whenever error occurs"point outside the window" it should goto G1, thing is i have a lot of lef messages through the code and i want one err statement to handle all of the possible errors coming from any of those lef commands. This is what i would basically want:

#err goto G1
lef ...
...
if (...)
goto something
..
lef..
lef..
end

something
lef ..
lef ..
if (...)
goto somethingelse
end

somethingelse
lef..
lef..
end

G1
;;come here when any lef throws the error

whats the correct coding? thankyou


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)