Hi again Rob. I should have read this slower.
> Nope. Delphi's AnsiString value actually points to the char field of > the struct, not the length field. I didn't think this was correct because when reading or writing a string to a file using blockread or blockwrite, I need to use MyString[1] as the reference. eg. BlockWrite(File1, MyString[1], Length(MyString)); If I specify just MyString, it accesses memory that does not contain the string, most likely the length integer which is MyString[0]. Perhaps you can explain to me a bit more on how this works. Thanks, Ross. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

