I tried to use READ PROTECT after a field value is set e.g.
Code: Select all
BO.ps_Attribute = BO.ps_AnotherAttribute.SomethingElse
READ PROTECT BO.ps_Attribute FROM ALL EXCEPT SYSTEM
In this instance it is setting the READ PROTECT before it tries to evaluate
In another instance I was trying to ensure that a field was UNDEFINED and then locked.
Code: Select all
If BO.ps_Attribute WAS CHANGED TO 'A Value' THEN
BO.ps_OtherAttribute=UNDEFINED
READ PROTECT BO.ps_OtherAttribute FROM ALL EXCEPT SYSTEM