AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Sonstige Fragen zu Delphi Delphi Speichernutzung: array of record vs. TObject (TList usw.)
Thema durchsuchen
Ansicht
Themen-Optionen

Speichernutzung: array of record vs. TObject (TList usw.)

Ein Thema von Nogge · begonnen am 22. Jul 2005 · letzter Beitrag vom 23. Jul 2005
Antwort Antwort
Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#1

Re: Speichernutzung: array of record vs. TObject (TList usw.

  Alt 22. Jul 2005, 20:32
Frag mal Robert_G, aber das ist schon mal etwas "schöner" und manchmal auch effizienter (wenn statt records nur Pointer umhergeschoben werden)
Delphi-Quellcode:
 TUserDB = class
published
    property UIN: Cardinal read FBlaBlaBa write FBlaBlaBla;
    property Nick : ShortString read FBlaBlaBa write FBlaBlaBla;
    property ItemID : HTreeItem read FBlaBlaBa write FBlaBlaBla;
    property UserID : Word read FBlaBlaBa write FBlaBlaBla;
    property FormIndex : Integer read FBlaBlaBa write FBlaBlaBla;
    property Msg : String read FBlaBlaBa write FBlaBlaBla;
    property Status : Cardinal read FBlaBlaBa write FBlaBlaBla;
    { -- Hint Infos -- } 
    Port : Word;
    property InternalIP : String[15] read FBlaBlaBa write FBlaBlaBla; // TCP/IP v6 wird noch nicht unterstützt
    property ExternalIP : String[15] read FBlaBlaBa write FBlaBlaBla; // TCP/IP v6 wird noch nicht unterstützt
    property OnlineTime : TDateTime; read FBlaBlaBa write FBlaBlaBla;
    property Idle : Word read FBlaBlaBa write FBlaBlaBla;
  end;
Dann noch mit einer Typed ObjectList (CodeLib) oder vielleicht auch der DPCollection (auch wenn ich noch nicht ganz weis, was das ist ) ist das ganze schon viel schöner und besser erweiterbar
  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 05:59 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