-=> Quoting Christian Iversen to Brian McCloud <=-
BM> I hope you realize this record is 2560 bytes long...
CI> No, It's 20 bytes long.
CI> If all strings are empty of course.
CI> Pascal only saves needed info.
err no sorry, it doesn't. if that happened, then how could you make a string
that was initially 5 bytes in length, 10 bytes? you'd have to rearrange all
the memory in your computer, or deallocate your 5 byte string and reallocate
another string which was 10 bytes. if you don't specify a string length when
declaring strings, most (all?) Pascal compilers assume a string length of 255
characters (with the zeroth byte being the string length). therefore, if you
only need strings of up to, say, 10 characters, you should declare your
strings
as type string[10];
sam
... Tag line thievery ... On the next Geraldo!
--- FMail/386 1.20+
---------------
* Origin: Comms Barrier BBS +61.3.9585.1112, +61.3.9583.6119 (3:632/533)
|