How to evaluate Action data type

I am porting some ancient code that looks something like this...


PushAction := FORM.RUNMODAL(50087,SalesLine);
CASE PushAction OF
PushAction::OK:BEGIN
Split := TRUE;
SplitQty := ROUND(Available / SalesLine."Qty. per Unit of Measure",0.1);
END;
PushAction::Yes:BEGIN
Split := FALSE;
SplitQty := 0;
END;
END;

In 2009r2 it won't compile with the message "Not an allowed option". PushAction is defined as an "Action" datatype. How may I evaluate it? I have tried EVALUATE and the resulting string is null. It won't allow me to assign the value to a numeric.
I'm stumped!

Thanks,
Mark Tyler
Pacific City, OR

Answers

  • neilgfneilgf Posts: 145Member
    Hi. PushAction looks like an Option field so check the option values assigned to it. Neil
Sign In or Register to comment.