Icon View Incident Report

Minor Minor
Reported By: Kentersoft
Reported On: 9/1/2013
For: Version 1.02 Build 2
# 3940 Class Property Example in Manual Does Not Work Properly when Run

The following code from the manual is not working properly.


TMyClass = class
private
class FClassName: String='MyClass';
public
class property ClassName: String read FClassName;
end;

procedure ShowClassName;
var
TempClass: TMyClass;
begin
TempClass:=TMyClass.Create;
try
window.alert(TempClass.ClassName); // window class is in WebDOM unit
finally
TempClass.Free;
end;
end;



Comments Comments
This was a bug in the compiler - when the class property/method was referenced from outside of the class implementation itself, the compiler generated incorrect JS code.


Resolution Resolution
Fixed Problem on 9/1/2013 in version 1.03 build 1


Products Affected Products Affected
Elevate Web Builder
Elevate Web Builder Trial

Image