tag:blogger.com,1999:blog-23088660.post6904865733288687488..comments2023-05-05T05:05:03.665-07:00Comments on axCoder: Dynamic analog of abstract macroMax Beluginhttp://www.blogger.com/profile/03910001890342930950noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-23088660.post-57539984392295542372007-01-26T08:13:00.000-08:002007-01-26T08:13:00.000-08:00Another sample ...
static void test_crpt2(Args _a...Another sample ...<br /><br />static void test_crpt2(Args _args)<br />{<br /> ;<br /> #test_crpt_all(,2,15,24)::#test_crpt_all(,9,14,6,15)('test');<br />}<br /><br />Kind Regards,<br /><br />Mkz.<br />-----------------------<br />http://www.trucosAx.com<br />A Dynamics Ax tricks site in Spanish language :)Mkzhttps://www.blogger.com/profile/09004527920296334163noreply@blogger.comtag:blogger.com,1999:blog-23088660.post-64008283642582332712007-01-26T08:07:00.000-08:002007-01-26T08:07:00.000-08:00Ok, you want it ...
Let's play hard with macros :...Ok, you want it ...<br /><br />Let's play hard with macros :-P<br /><br />First define macro named : test_crpt_chrtable<br /><br />And the content of this macro is ...<br /><br />#define.arg1(%2)<br />#if.arg1(1)<br />#test_crpt_all(%1a,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(2)<br />#test_crpt_all(%1b,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(3)<br />#test_crpt_all(%1c,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(4)<br />#test_crpt_all(%1d,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(5)<br />#test_crpt_all(%1e,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(6)<br />#test_crpt_all(%1f,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(7)<br />#test_crpt_all(%1g,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(8)<br />#test_crpt_all(%1h,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(9)<br />#test_crpt_all(%1i,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(10)<br />#test_crpt_all(%1j,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(11)<br />#test_crpt_all(%1k,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(12)<br />#test_crpt_all(%1l,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(13)<br />#test_crpt_all(%1m,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(14)<br />#test_crpt_all(%1n,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(15)<br />#test_crpt_all(%1o,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(16)<br />#test_crpt_all(%1p,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(17)<br />#test_crpt_all(%1q,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(18)<br />#test_crpt_all(%1r,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(19)<br />#test_crpt_all(%1s,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(20)<br />#test_crpt_all(%1t,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(21)<br />#test_crpt_all(%1u,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(22)<br />#test_crpt_all(%1v,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(23)<br />#test_crpt_all(%1w,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(24)<br />#test_crpt_all(%1x,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(25)<br />#test_crpt_all(%1y,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br />#if.arg1(26)<br />#test_crpt_all(%1z,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br /><br />------------------------------------------------<br />After that ... define macro named : test_crpt_all<br /><br />And the content of this macro is ...<br /><br />#define.arg1(%1)<br />#define.arg2(%2)<br />#if.Empty(%2)<br />%1<br />#endif<br />#ifnot.Empty(%2)<br />#test_crpt_chrtable(%1,%2,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12,%13,%14,%15,%16,%17,%18,%19,%20)<br />#endif<br /><br />------------------------------------------------<br /><br />Finally ... <br /><br />Create a job like this ...<br /><br />static void test_crpt(Args _args)<br />{<br /><br /> ;<br /><br /> #test_crpt_all(,9,14,6,15)('test');<br /><br />}<br /><br />------------------------------------------------<br /><br />What will do this job ? heheheh<br /><br />Sorry but I'm going crazy ... it's friday and this week was so hard :D<br /><br />Kind Regards,<br /><br />Mkz.<br />------------------------<br />http://www.trucosax.com<br />A Dynamics Ax tricks site in Spanish language :)Mkzhttps://www.blogger.com/profile/09004527920296334163noreply@blogger.com