[fpc-pascal] Byte array manipulation
wimpienortje at gmail.com
Sun Aug 16 21:17:31 CEST 2009
> AnsiString does not have problems with #0.
> var aStr:AnsiString;
> //if you ouput now, you'll only see 'test'...
> //...but the text is still in the String;
Thanks. I tested it and it works.
The reference manual is a bit confusing though:
"Ansistrings are strings that have no length limit. They are reference
counted and null terminated."
"i.e. a variable of type PChar is a pointer that points to an array of
type Char, which is ended by a null-character (#0). "
The above quotes does not agree with the code above, which makes
discovering this info a bit difficult.
More information about the fpc-pascal