Einzelnen Beitrag anzeigen

mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.858 Beiträge
 
Delphi 11 Alexandria
 
#4

Re: C# class in Delphi Win32 class 'übersetzen'

  Alt 7. Feb 2007, 10:22
Delphi-Quellcode:
Cell = class;

Cell = class
  protected
    Fright, Fleft; cell;
    Fnumber: Integer;
  public
    constructor Create;
    constructor Create( nr: integer; zelle: Cell);
  published
    property number: Integer read FNumber write Fnumber;
    property left: Cell read FLeft write FLeft;
    property right: Cell read FRight write FRight;
end;

constructor Cell.Create;
begin
  FNumber = -1;
end;

constructor Cell.Create( nr: integer);
begin
  FNumber := Nr;
end;
Markus Kinzler
  Mit Zitat antworten Zitat