Preventing macro from asking for undefined variable input
Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice
-
- Giant
- Posts: 183
- Joined: Mon Apr 11, 2011 8:11 pm
Preventing macro from asking for undefined variable input
So, I have a few macros I have written, that under specific circumstances (Usually when someone hits cancel on an input box) that it starts asking for the value for the undefined variables. Is there a way to "flag" the macro, so that if it doesn't have some needed information, it just aborts instead of asking for it?
Re: Preventing macro from asking for undefined variable input
Typically, you can do this: [H: abort(input(...))] so when they hit cancel or close the window it exits the macro.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools