Icon View Incident Report

Minor Minor
Reported By: Thom Halvorsen
Reported On: 4/23/2021
For: Version 3.01 Build 1
# 4838 References in Try/Finally Blocks Can Result in Incorrect Compiler Initialization Warnings

I am unable to use var variables when passing by reference so I pass an object into an event, and get the following compiler hint:

"The LLookupField declaration may not have been initialized before being referenced"

   TPLLookupField = class
   private
      FFieldName: string;
      FFieldValue: string;
   public
      property FieldName: string read FFieldName write FFieldName;
      property FieldValue: string read FFieldValue write FFieldValue;
   end;

   TPLBeforeLookupEvent = function(Sender: TObject;
                                   const ADataColumn: string;
                                   ALookupField: TPLLookupField): Boolean of object;

LLookupField := TPLLookupField.Create;
try
   Result := FOnBeforeLookup(Sender, DataColumn, LLookupField.FieldName, LLookupField.FieldValue);
finally
   LLookupField.Free;
end;



Resolution Resolution
Fixed Problem on 4/30/2021 in version 3.01 build 2


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image