Local Macro's in AX
Today I will demonstrate you that how to create Local Macro's and use them in AX.
static void Local_Macro(Args _args)
{
// Define the local macro
Local Macro’s
{
// Define the local macro
#localmacro.WelcomeMessage
{
info("Welcome to Carz Inc.");
info("We have the best offers for rental cars");
}
#endmacro;
{
info("Welcome to Carz Inc.");
info("We have the best offers for rental cars");
}
#endmacro;
// Use the local macro
#WelcomeMessage
}
#WelcomeMessage
}
Comments
Post a Comment