--- Frank Heckenbach frank@g-n-u.de wrote:
Will sizeof(somestring) always be 9 bytes larger than high(somestring)/getstringcapacity(somestring)?
A string contains Capacity and Length (4 bytes each on a 32 bit platform) and an extra character for the #0 when converting to CString.
OK, thank you... Is it converted to CString automatically when calling sizeof? Because it is 9 bytes longer than getstringcapacity...
Not converted, but the extra char is always there (so that it's available when it's needed).
Frank