Re: [Axapta-Knowledge-Village] X++ to Convert Negative to Positive

2004-10-20 Thread Subrahmanyam Mamidi
Its me again.   why do you want to use already existing function abs()? This makes your life easier.   /*/  return Abs(InventJournalTrans_Qty)will return the absolute ( positve ) value.   /***

Re: [Axapta-Knowledge-Village] X++ to Convert Negative to Positive

2004-10-20 Thread Subrahmanyam Mamidi
1. Are you sure that you have specified the datamethod  and the data source ( in the field properties ) for this function?.    2. After that, can you reset the compilation errors to see the refreshed errors. 3. It may be required to modify the code as below.   /*

Re: [Axapta-Knowledge-Village] X++ to Convert Negative to Positive

2004-10-20 Thread Varden Morris
Bob   I see nothing wrong with the method away from the bracket that comes before you assign a value to the variable result.[EMAIL PROTECTED] wrote: Hi All,I am trying to convert a negative number to positive for a report and amgetting errors:1-Unknown source for data method Quantity2-Operand Ty

RE: [Axapta-Knowledge-Village] X++ to Convert Negative to Positive

2004-10-19 Thread Andries Patrick
Title: Message You cannot get the real-value from a report real control.  You should use the datasource of the control to retrieve the value.  InventJournalTrans_Qty  does not give you a value because it is a control.    Regards ,    Patrick      -Original Message-From: [EMAI