Comparsion of Integer Value in X++

Hi,

I have an integer value for a field in database with 3. When i try to see if it is greater than 0 , it is skipping the conditional statement

My statement is ( if field > 0)

I see a value in the field with Watch window but it is showing up as x0003 instead of 3

Any ideas would be great…

Thanks

hi,

where u r using that value ? if u r using the datasource in ur datasource node then just take that

if(datasourcename.field > 0)

{

}

Go to Google write your problem it gives you the best answer.