public class test extends RunBaseBatch
{
#macrolib.addonmacro
...
...
...
#DEFINE.CurrentVersion(2)
#LOCALMACRO.CurrentList
FileName
#ENDMACRO
}
- I got (Syntax error) in declaring the macro library.
Please advice.
*This post is locked for comments
On compilation, the text in the macro definition is put at the place at the reference. And the result possible can't compile, e.g. because the macro is expected to be used elsewhere (e.g. inside a method instead of class declaration), it defines a variable with name which is already used in the class and so on. A useful technique is to paste the content of the macro manually, compile the code and review compilation errors.
Yes Mister, I have that macro created in Macros node.
The other class that used the same macro works fine and the error just came up on this new class.
Hi H2K,
Do you have Macros with name "addonmacro " in AOT under Macros node ?
You should have it because #macrolib means that you want to use macros defined in AOT within current code.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156