> Thanks > > ms.Seek(0,0); > >>DisplayMemo.Lines.Add(ms.DataString); > > > Works great. It looks like ms.Seek is quit important sometimes. In case of > using TMemoryStream its needed, TStringStream not all the time.
this is a bit off-Topic, but when dealing with streams, when a third party component is using a stream that you provide, when you get the stream back from a function, you'll always have to "rewind" it to the position 0 (or seek(0, 0) ) if you want to have access to its content. this is true for almost every TStream descendant. >>> ms:=TStringStream.Create(data); > > When using TStringStream.Create('') it's the same, seems like the var 'data' > has no meaning here. the TDataString constructor method enables you to provide a first string to feed the stream with at its creation. If you don't want to fill it, passing '' is a solution :) Best Regards, -- Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50 e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be