Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 10.01.06 14:28 
Wie der Titel es schon sagt, möchte ich wissen, ob der Inhalt eines Memo unbegrenz ist oder nicht.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 10.01.06 14:30 
IIRC, waren es 4GB Zeichen.
Auf jeden Fall mehr, als man normalerweise benötigt.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 10.01.06 14:45 
Dann habe ich ja genügend Platz. Ich möchte im Hintergrund einer DB-Anwendung ein Memo füllen, welches in der Testphase sämtliche Aktionen eingetragen bekommt. Eine lokale Textdatei kommt leider nicht in Frage.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 10.01.06 14:51 
Moin!

Ähm, nur noch mal so zur "Sicherheit":

Ein unsichtbares Memo ist quasi eine StringListe... (wozu VCLs einsetzen, wenn es die grundlegende Datenstruktur auch tut?) :wink:

cu
Narses
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 10.01.06 14:54 
Ich nehme dafür lieber eine Listbox, CheckListBox (Jedi) oder, falls es nicht dargestellt werden muss, eine StringList. Aber das ist Geschmackssache.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 10.01.06 14:56 
Entweder verstehe ich Dich nicht, oder wir reden aneinander vorbei. In meiner DB-Anwendung kann es vorkommen, dass bestimmte fields keinen Eintrag haben. Das ist nun mal so und wird auch farblich angezeigt. Ich möchte nun, dass jede unregelmässigkeit, wie das Fehlen von Fields.Value in das Memo eingetragen werden kann, so dass ich sie in der Testphase einsehen kann. Das memofeld ist zwar unsichtbar, aber über Tastenkombination sichtbar und unsichtbar zu machen.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 10.01.06 14:58 
An eine ListBox habe ich auch schon gedacht, weil da die Einträge über einen Index ansprechbar sind. Jedoch war ich mir nicht sicher, wieviel Sie beinhalten kann.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 10.01.06 14:59 
Dann ist eine visuelle Komponente natürlich richtig. Ich habe nur die Erfahrung gemacht, dass ein Memo bei großen Datenmengen langsam werden kann. Die ListBoxen sind imho schneller.
Eine ListBox kann 4GB Zeilen enthalten.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 10.01.06 15:04 
Na dann ändere ich meine Debugfunktion um. Thx
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 10.01.06 22:41 
Zitat:

LB_INSERTSTRING
Microsoft Windows 95/Windows 98/Windows Millennium Edition (Windows Me) : The wParam parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory.

Dumm nur, dass da nichts über Windows NT ff. steht.
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 11.01.06 07:53 
Habs zum Spaß mal getestet. Die 32767-Grenze existiert unter XP definitiv nicht für eine ListBox. Ich habe nicht geprüft, wieviel maximal geht.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mi 11.01.06 08:24 
Ich habe da mal was gebastelt. Das Teil läuft nun schon beim Index 1,3 Mio. Nun weis ich nicht, ob es abhängig von dem Inhalt des Items ist. Aber es passt offentsichtlich ne Menge rein.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Button1Click(Sender: TObject);
var i: integer;
begin
 repeat
  ListBox1.Items.Append(IntToStr(ListBox1.count));
  ListBox1.Selected[ListBox1.count - 1] := true;

  ListBox1.Repaint;
  ListBox1.Refresh;
  ListBox1.Update;
 until ListBox1.Count < 0
end;


PS: Bei der Gelegenheit will ich doch gleich mal wissen, worin der Unterschied zwischen Repaint, Refresh und Update besteht. Ist doch vom Prinzip das selbe Ergebnis?