crosslang3.pp

来自「Delphi脚本控件」· PP 代码 · 共 33 行

PP
33
字号
program Demo;
type
  TRandomPoint = record
    X: Integer = Random(100);
    Y: Integer = Random(100);
    function TRandomPoint(): TRandomPoint;
    begin
      result := Self;
    end;
  end;

   TPascalClass = class(TObject)
   private
     fProp: Integer = 10;
    public
     constructor Create;
     function TPascalClass: TPascalClass; // to use it in paxJavaScript or paxC
     property Prop: Integer read fProp;
   end;

constructor TPascalClass.Create;
begin
  inherited;
end;

function TPascalClass.TPascalClass: TPascalClass;
begin
  result := Self;
end;

begin
end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?