5

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);

}
Alex Kwitny
  • 11,211
  • 2
  • 49
  • 71

1 Answers1

7

Instead referencing the macro like:

#MyMacro

You need to reference it like this:

#macrolib.MyMacro
dlannoye
  • 1,746
  • 19
  • 19