Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 18:03 
Hi
StringGrid1.Cells[0,0].LoadFromStream(Stream1);... funktioniert nicht.

Wie kann ich einen Stream in ein StringGrid laden? :(
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 19:59 
:(
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 20:02 
was soll das rumgedrängle nach 2h? :evil:

die cells-eigenschaft kennt kein loadfromfile. das haben nur die rows und cols-eigenschaft. Außerdem wäre es ganz gut, wenn du sagst, was du tun willst.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
toms
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1099
Erhaltene Danke: 2



BeitragVerfasst: Sa 15.01.05 20:09 
ausblenden Delphi-Quelltext
1:
StringGrid1.LoadFromStream(Stream1);					
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 20:10 
toms hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
StringGrid1.LoadFromStream(Stream1);					

mit welchem Delphi?

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 20:41 
ausblenden Delphi-Quelltext
1:
2:
  Memo1.Lines.LoadFromStream(Stream1);
  StringGrid1.Cells[0,0] := Memo1.Text;

:(
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 20:50 
was willst du damit sagen?

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 20:56 
Das es zwar funktioniert aber sehr unschön ist, weil man eine versteckte Komponente mehr auf der Form hat. :(
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 20:58 
ich verstehs nicht. warum nimmst du nicht stringrid.rows.loadfromstream (nie probiert, bezieht sich aber auf ganze gird, nicht bloß auf eine Zelle) oder ein Tstringlist?

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 21:01 
Weil ich es so am besten abspeichern und laden kann.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 21:02 
was glaubst du, wo der unterschied zwischen einer Tstringlist, Stringgrid.rows und memo.lines ist?

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 21:09 
StringList und Memo sind keine Tabellen und Stringgrid.rows funktioniert nicht...
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 21:14 
da gibst keine unterschiede. es sind alle 3 Tstrings oder davon abgeleitet.
was genau willst du nun überhaupt? einen stream in eine zelle oder ins ganze grid?

"funktioniert nicht" ist die genialste Fehlermeldung, die es gibt

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 21:17 
Achso, ich will es nur in eine zelle schreiben.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.01.05 21:22 
und was spricht da jetzt gegen die Tstringlist?

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 21:46 
Eine StringList ist eine Liste, eine Tabelle ist für meinen Zweck besser geignet.
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 15.01.05 21:52 
Sorry, du meintest es wohl so:
ausblenden Delphi-Quelltext
1:
2:
  StringList1.LoadFromStream(Stream1);
  StringGrid1.cells[0,0] := StringList1.Text;


Danke!