Reported By: Kentersoft Reported On: 9/1/2013 For: Version 1.02 Build 2
# 3940Class 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;
CommentsThis 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.
ResolutionFixed Problem on 9/1/2013 in version 1.03 build 1
Products AffectedElevate Web Builder Elevate Web Builder Trial