LC0086 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki
Use the new PageStyle datatype instead of string literals.
Adopting the use of the new PageStyle datatype allows to more easily get the supported pagestyles via IntelliSense and avoids incorrect behaviour when a typo is made in hardcoded strings or label variables.
Example
layout
{
area(Content)
{
field(Name; Rec.Name)
{
StyleExpr = nameStyle;
}
}
}
var
nameStyle: Text;
procedure ChangeNameStyle(newPageStyle: PageStyle)
begin
nameStyle := Format(newPageStyle);
end;