Open rvanbekkum opened 8 months ago
Today I learned you can invoke global procedures with property-syntax, e.g.:
codeunit 70257126 MyCodeunitWithProperty { var MyIntegerVariable: Integer; internal procedure MyInteger(NewIntegerValue: Integer) begin MyIntegerVariable := NewIntegerValue; end; } codeunit 70257127 SampleCodeunit { var MyCodeunitWithProperty: Codeunit MyCodeunitWithProperty; trigger OnRun() begin MyCodeunitWithProperty.MyInteger := 42; end; }
For this sample, rule 0052 does not detect that the internal procedure is referenced.
I think this is feature is limited to simple types like, Text, Integer, BigInteger and the procedure must only have one paramter.
Today I learned you can invoke global procedures with property-syntax, e.g.:
For this sample, rule 0052 does not detect that the internal procedure is referenced.