redwards Posted February 4, 2014 Report Share Posted February 4, 2014 I use the macro logs a lot. I'm not sure is this is a problem or not. When a macro writes to it's log file, it appends it's Index number to the file name. For example if I had a macro called "MEP Report" and it's index was 100. When it creates it's log file, it would be "MEP.Report100.txt" Now if I call the macro "MEP Report" from a 2nd macro call "Test" and it's index is 50, the log file is different. In my case it was "MEP Report99.txt" (the index of the called macro less 1) Is this bug or is this the way things should work? Quote Link to comment Share on other sites More sharing options...
Cory Posted February 4, 2014 Report Share Posted February 4, 2014 Sounds like a bug to me. I'm guessing the intention of the programmers was to add the index in order to guarantee the macro name was unique. But making another number could in very rare circumstances fail to write to the proper log file. Say you had 3 macros of the same named numbered 1, 2, and 3. It would get all confused. Quote Link to comment Share on other sites More sharing options...
Samrae Posted February 7, 2014 Report Share Posted February 7, 2014 The number appended to the end of the log file name is the index of the macro that was activated, even for macros called via the Macro Run command. If Macro_A has an index of 45 and Macro_B has an index of 38, when Macro_B is activated by itself the log file is named Macro_B38 but if Macro_A runs Macro_B via a Macro Run command the log file for Macro_B is named Macro_B45. Quote Link to comment Share on other sites More sharing options...
terrypin Posted February 9, 2014 Report Share Posted February 9, 2014 Samrae, But I dont see how that explains the OP's question about the number being decremented? Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Cory Posted February 11, 2014 Report Share Posted February 11, 2014 Samrae I think you missed what he's saying. He has two macros named "MEP Report" with indexes of 50 and 100. When the log files are created it should be "MEP Report50" and "MEP Report100" but instead he's getting "MEP Report99" and "MEP Report100". I have not verified this myself but that's what he's saying.To me it sounds like MEP’s logic might be set to look up the macro index number by name when it creates the log file. And perhaps if there is already a log file it’s decrementing or something. Whatever the case it sounds like to logic for adding the index number is not functioning as one would desire in the odd case of when duplicate macro names exist. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.