Autor Beitrag
Timbo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 166



BeitragVerfasst: Di 27.06.06 09:52 
Hallo,

hab schon fleißig gesucht, aber nichts gefunden.
Habe eine Function die nur Streams akzeptiert, funktioniert auch prima mit FileStreams aus einer Datei.
Ich baue aber einen String zusammen und wollte dann nicht den Umweg über eine Datei gehen... Gibt es eine Möglichkeit einen String in einen Stream zu verwandeln?

Vielen dank.
Tim.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 27.06.06 12:00 
Dazu ist TMemorystream gut falls du mehere Strings übergeben willst, würde ich vielleciht noch mit einer TStringlist arbeiten, die hat eine SaveToStreamMethode.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 27.06.06 12:23 
oder den TStringStream.