Jose,
There is a limitation in our macro interpreter which prevents nested macros from working unless you enclose each macro's script inside braces of a different type (i.e. {} for the outer macro and then [] for the inner macro and so on...).
In other words, if you were to nest two macros using curly braces {} for both, the interpretor would think the closing curly brace for the internally defined macro was actually the closing curly brace for the first macro. This might cause all subsequent script to function incorrectly. I point out the curly braces I am referring to by bolding them and displaying them in red below.
def NewFunction
{
doc -cs F;
%B=F$(count+1);
create %B -f 10;
def ErrorProc
{
del %B;
};
set %B;
del -m ErrorProc;
};
Please note that I have entered a bug report which will hopefully address this limitation. If it is not addressed, I will make sure the limitation is documented.
Sincerely,
Ryan Toomey
OriginLab Corp.