Icon View Incident Report

Minor Minor
Reported By: Frederick Chin
Reported On: 2/22/2018
For: Version 2.06 Build 11
# 4632 Assigning a Variant Array Element to a Typed Variable Results in a Compiler Error

I have a variant array defined as follows, but get the following compiler error when compiling:

"Expected boolean or integer but instead found not aTest[0]"

var
  aTest : array of Variant;
begin
    setlength(aTest, 1);
    aTest[0]:=False;

    TLabel1.Visible:=not aTest[0];  // Compiles OK

    if not aTest[0]. then   // Compiler says "Expected boolean or integer but instead found not aTest[0]
       TLabel1.Visible:=False;
end;



Comments Comments and Workarounds
The workaround was to assign the value to a Boolean variable first.


Resolution Resolution
Fixed Problem on 2/24/2018 in version 2.06 build 12


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image