gget79
16th December 2008, 18:26
Hi experts,

I am using Infor LN 6.1

I have to make a customization on tfacr2421m000 session, but I see that this program uses Macros. I never have worked with this.

Anybody can explain me which is the advantage to use this Macros definitions?

That is to say, if I want to modified this macros I would have to do it how I have done it before on the normal scripts?

Thank you..........

zardoz
17th December 2008, 13:13
The main advantage of using macros is to decrement the size of the source, avoiding repeating instructions.
One golden programming rule, independent from the language used, is 'less instructions written, lesser the probability of errors done'.
The only disadvantage using macros is the difficulty of debug them.

gget79
17th December 2008, 15:14
Hi,

Thank you for your answer, but the main disadvantage that you told me, this is my main problem, Is there some way to do debugger on this macros?.
How can I do?

Thank you another time for your answers.

zardoz
17th December 2008, 18:10
No way.
In the debugger window the line appears as is written (with the macro call), so the only way to debug it is to ask the values of each single step in the macro.
If the macro isn't called in a condition, you can modify the macro using variables to track the values you are interested in.