TIP: Click on subject to list as thread! ANSI
echo: delphi
to: FRANCOIS PIETTE
from: BRYAN SMITH
date: 1997-02-13 11:35:00
subject: Binairy Files from C++ to

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.