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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: woensdag 20 oktober 2004 3:49
To: [EMAIL PROTECTED]
Subject: [Axapta-Knowledge-Village] X++ to Convert Negative to Positive
Hi All,
I am trying to convert a negative number to positive for a report and am
getting errors:
1-Unknown source for data method Quantity
2-Operand Types are not compatible with the operator.
Can anyone tell me what I am doing wrong? InventJournalTrans_Qty is a field
in my report.
My method is as follows:
display real Quantity()
{
real result;
//
if (InventJournalTrans_Qty < 0)
)
result = InventJournalTrans_Qty * -1;
else
result = InventJournalTrans_Qty * 1;
//
return result;
}
Thanks in advance for this and the help I have received. I sincerely
appreciate it.
Bob
Bob Brinker
Oakdene Group, Inc.
2625 Butterfield Rd. (Suite 212E)
Oak Brook, IL 60523-1261
[EMAIL PROTECTED]
Sharing the knowledge on Axapta.
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.