@ Lucamar :
Thanks for replying ,
GridStream.Seek(0, soBeginning);
instead of:
GridStream.Position := 0;
make the same error (RunError 203).
ShowMessage(IntToString(GridStream.Size));
Actually , this line was there ,
I just removed it before posting the code , and it works fine and returns the correct size .
@Jamie :
Thank you really for answering
the code you suggested compiles and run as it should be but the string inside "var S " is empty even when sure the stream contains text data .
(btw if this is the issue , I wonder how TMemoryStream.GridStream.ReadAnsiString() doesnt do that for us ,
hence the name is "Read
AnsiString" , they are supposed to know exactly what they are reading )
Again ,Thank you all for replying