On 11 Feb 97 Francois Piette said to Gary Weinfurther...
FP> Not exactly. They are in fact a record with two fields. One is the
FP> length and the other is a pointer to the actual characters forming the
FP> string. Those characters are null-terminated. And the null byte
FP> does'nt count into the length.
I take it, then, that with Delphi 2 you can no longer pull stunts like
dec(s[0])
to shorten a string by one character, or
n := 20 ;
if s[0] > char(n) then s[0] := char(n) ;
to set an upper limit to the string length ???
I believe that earlier releases of TP allowed assignments to "length", e.g.
length(s) := 23 ;
but that this became illegal with later releases. Is it now legal again -
it might be, if "length" is a field. e.g. s.length := 23 ;
--- PPoint 2.00
---------------
* Origin: Kingston, Canada (1:249/109.11)
|