Icon View Incident Report

Minor Minor
Reported By: Ronald van der Pas
Reported On: 12/10/2015
For: Version 2.03 Build 1
# 4323 Compiler Not Handling Char Type Properly When Mixed with String Types in Array Constant Declaration

This declaration is accepted in the vars section:

CellColors :array of integer=[0,$FF4BACC6,$FFF79646];

But this declaration is rejected with "Expected array of string but instead found" (no explanation of what the compiler DIDd find):

HTMLCellColors :array of string=['0','#4BACC6','#F79646'];

Comments Comments and Workarounds
The issue was a combination of the fact that the parser has a preference for treating single-character strings as characters, not strings, and the fact that the first element of an array constant is used to determine the type of array.

The workaround:

HTMLCellColors :array of string=[string('0'),'#4BACC6','#F79646'];

Resolution Resolution
Fixed Problem on 12/11/2015 in version 2.04 build 1

Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial