-
Notifications
You must be signed in to change notification settings - Fork 32
LC0058
Arthur van de Vondervoort edited this page Jun 10, 2024
·
2 revisions
The goal of this rule is to deal with the record parameter of the PageVariable.SetRecord()
procedure which cannot use a temporary record for the Record parameter.
You cannot use a temporary record for the Record parameter
Source Page.SetRecord(var Record) Method - Business Central | Microsoft Learn
local procedure MyProcedure()
var
TempCustomer: Record Customer temporary;
CustomerCard: Page "Customer Card";
begin
// ...
// Lots of code here
// ...
CustomerCard.SetRecord(TempCustomer); // This will raise the diagnostic
CustomerCard.Run();
end;