The code here is X ++. I know very little about this, although I am familiar with C #. MS says it looks like C ++ and C # syntax.
In any case, I assume that the code below is a method. It has "Construct" as a keyword.
What is the construct / Constructor method? What will the construct keyword change when applied to this function? Also, am I mistaken in assuming the code will create some kind of infinite loop?
My guess is that this is a method with a return type of "InventMovement".
static InventMovement construct(Common buffer, InventMovSubType subType = InventMovSubType::None, Common childBuffer = null)
{
InventMovement movement = InventMovement::constructNoThrow(buffer,subType,childBuffer);
if (!movement)
throw error("@SYS20765");
return movement;
}
Thanks! Kevin
Kevin source
share