Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Help Manual Class variable function is break
Sun, Sep 1 2013 7:58 PMPermanent Link

kentersoft

In Help Manual below example is not function:

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;
Tue, Sep 3 2013 1:40 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< In Help Manual below example is not function: >>

It's a bug in the compiler - when the class property/method is referenced
from outside of the class implementation itself, the compiler generates
incorrect JS code.

I'll have a fix for this in the next build.

Tim Young
Elevate Software
www.elevatesoft.com
Image