gdyvig wrote:Another variation of the switch it on/off is to do the extra checks only when the script editor is open. That gives you a chance to get it right and not have the overhead when running it normally.
- Yes, I think I mentioned this in one or both of the Enhancement requests... If this kind of checking were added, the first and lowest overhead place to add it would be in the MS Editor. It could check when we save the script and if it found two labels or subroutines with the same name, it could pop up error details and not allow the save unless the error is fixed.
- One step better than that would be if the MS Editor, as you're typing up a script, keeps track internally of all labels and subroutine names used so far. That way, as soon as you enter a Label that has already been used elsewhere, it could notify you of the problem and you could fix it right away.
gdyvig wrote:I think this kind of problem is most likely to occur in shops with several developers sharing the same include scripts.
Yes, and even when only one developer is using Include scripts. Note that variable Scope is being introduced with version 12 to encourage and facilitate using include scripts. If my included scripts are large and contain many labels and subroutines, I'd like a way to not have to manually check for collisions with any labels and subroutine names I may have used in my main macro.
Just my two cents... take care.