AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Unterkategorien bei Komponenten

Ein Thema von s.h.a.r.k · begonnen am 25. Nov 2005 · letzter Beitrag vom 25. Nov 2005
Antwort Antwort
Benutzerbild von sh17
sh17

Registriert seit: 26. Okt 2005
Ort: Radebeul
1.690 Beiträge
 
Delphi 11 Alexandria
 
#1

Re: Unterkategorien bei Komponenten

  Alt 25. Nov 2005, 09:18
Vielleicht so
Delphi-Quellcode:
TAnything = class(TPersistent)
        private
          FInt1, FInt2: integer;
          FStr: string;
        public
          procedure Assign(Source: TPersistent); override;
        published
          property Int1: integer read FInt1 write FInt1;
          property Int2: integer read FInt2 write FInt2;
          property Str: string read FStr write FStr;
      end;

procedure TAnything.Assign(Source: TPersistent);
begin
  if Source is TAnything then
  begin
      TAnything(Source).Int1 := Int1;
      TAnything(Source).Int2 := Int2;
      TAnything(Source).Str := Str;
    Exit;
  end;
  inherited Assign(Source);
end;
Sven Harazim
--
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:58 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz