static void MEPInventTableCP(Args _args)
{
InventTable C;
MYUploadTable U;
ttsbegin;
while select U
{
Select firstonly forupdate C where C.ItemId == U.Field1;
If (C)
{
C.ItemName = U.Field2;
C.ItemGroupID = U.Field3;
C.ItemType = U.Field4;
C.update();
}
}
ttscommit;
}
Compiler gives error OperandType not compatible with Operator ... for the line I marked in red and bold ...
Itemtype is an Enum Field with values : Item, Bom,Service
Please help ...
Apples Will Rule The World Someday
0
Comments
We all know what ItemType field is in InventTable.
What you should describe is your table and field4 in it.
What is the field Extended type or BaseEnum property?
The error is because it doesn't match the ItemType base enum.
My blog - http://kashperuk.blogspot.com
MorphX IT in Russian - http://www.lulu.com/content/723888
Inside Dynamics AX 4.0 in Russian - http://www.ozon.ru/context/detail/id/3714582