I created a macro object in the AOT called "MyMacro". In it I put:
#localmacro.myStrFmt
'Here is some text before (' + %1 + ') and some after'
#endmacro
In my class it works if I have it defined locally in the run method or class dec, but not if I use the #MyMacro. Is there a different syntax or something?
void run()
{
// #MyMacro
str retVal;
#localmacro.myStrFmt
'Here is some text before (' + %1 + ') and some after'
#endmacro
;
retVal = #myStrFmt("Text in parenthesis");
info (retVal);
}
Instead referencing the macro like:
#MyMacro
You need to reference it like this:
#macrolib.MyMacro
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With