[fpc-pascal] Version 2.1.4
peter at freepascal.org
Sat Jun 2 19:59:44 CEST 2007
At 19:58 2-6-2007, you wrote:
>s:='#'; --> causes an access violation
>Why is it no more possible to assign the length index s in a string?
>I find that is too much security to supress that.
>It is cutting responsibility from the programmers.
You are using ansistrings instead of shortstrings. Use SetLength()
first to allocate memory.
More information about the fpc-pascal