Welcome to MSDN Blogs Sign in | Join | Help

Issues concerning X++

This blog deals with issues about X++
CLR interop: Passing Int16 values to managed code.

As you all know, Dynamics AX supports 32 bit integers in its int datatype. However, sometimes you need to transfer an int16 value to a managed method. Currently the easiest way to acheive this is by doing:

static void Job2(Args _args)
{
System.Int16 short;
int num = 2356;
;

short = System.Convert::ToInt16(num);

print short;
pause;

}

 

Posted: Monday, July 02, 2007 9:20 AM by pvillads
Filed under:

Comments

No Comments

Anonymous comments are disabled
Page view tracker