Friday, February 11, 2011

Dynamics Ax Jobs or Axapta or X++ Sample Job Programs

========================================================================
static void HelloWorld(Args _args)
{
print "HelloWorld";
pause;
or
info("Hello World");
}
========================================================================

static void Datatypes_string1(Args _args)
{
str 7 fixedLengthString;
str dynamicLengthString;
;
fixedLengthString = "Welcome to Carz Inc";
dynamicLengthString = "Welcome to Carz Inc";
print fixedLengthString;
print dynamicLengthString;
pause;
}
=========================================================================

static void Datatypes_string_strmft(Args _args)
{
str name;
int a;
;
name = "Carz Inc";
a = 100;
print strfmt("%1: Welcome to %2", a, name);
pause;
}
=========================================================================

static void Datatypes_integer1(Args _args)
{
int carsInEachOffice;
int offices;
;
carsInEachOffice = 6;
offices = 4;
print strfmt("Carz Inc have %1 cars in total",
carsInEachOffice *
offices);
pause;
}
========================================================================

static void Job_Integer(Args _args)
{
    int a;
    int b;
    int c;
    ;
    a = 6;
    b = 5;
    c = a+b;
    print "Result is :" , c;
    pause;

}
=========================================================================

No comments:

Post a Comment

Leave your comments and solutins