Icon View Incident Report

Serious Serious
Reported By: Peter Aschbacher
Reported On: 9/8/2015
For: Version 2.01 Build 2
# 4248 Accessing an Element in a Constant Array Causes the Whole Constant to Be Used

There seems to be a bug which is not described in the documentation, as detailed below:

const
  UpperChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';

function TForm1.ChangeAlpha(input: string): string;
var
  a: Char;
  i: Integer;
begin
  for i := 1 to 26 do
  begin
    // this will always give back the whole constant instead of the single char:
    a := UpperChars[i];
  end;
end;



Resolution Resolution
Fixed Problem on 9/8/2015 in version 2.02 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image