[Axapta-Knowledge-Village] Macro Question

2004-12-23 Thread Danny Gaethofs
Dear all, I have created a macro in the AOT containing the following: #localmacro.TRA_Macro_Local1 print Hello local world; pause; #endmacro Now I created a job containing the following: static void TRA_Macro_Global1(Args _args) { #TRA_Macro_Local1 } I expected I could just call

AW: [Axapta-Knowledge-Village] Macro Question

2004-12-23 Thread oka
static void Jobx(Args _args){#localmacro.TRA_Macro_Local1 print "Hello local world"; pause;#endmacro #TRA_Macro_Local1} now push F5 (execute) Otto -Ursprüngliche Nachricht-Von: Danny Gaethofs [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 23. Dezember 2004 14:51An:

Re: [Axapta-Knowledge-Village] Macro Question

2004-12-23 Thread Raul Llorente Peña/OPENSOLUTIONS
Otto, you're defining a local macro:static void Jobx(Args _args) { #localmacro.TRA_Macro_Local1 print "Hello local world"; pause; #endmacro #TRA_Macro_Local1 } Danny wants to use a global one!! The right version would be:Macro Macro1 is listed:#define.salute1(print 'Hello World';

Re: [Axapta-Knowledge-Village] Macro Question

2004-12-23 Thread Max Belugin
Hello Danny Gaethofs, ÷åòâåðã, 23 äåêàáðÿ 2004 ã., you wrote: DG How can I put a large amount of code in a macro and execute it at DG compile time? just remove #localmacro and use AOT macro name instead: \Jobs\Test_Macro: static void Test_Macro(Args _args) { ; #TEST_MAcro }