On Mon, 14 Jul 2003, Alan Mead wrote:

>
> --- James Mills <[EMAIL PROTECTED]> wrote:
> > On Mon, Jul 14, 2003 at 06:48:06AM -0700, Alan Mead wrote:
> > > I'm running into this string problem as well.  I'd like to use
> > > strings longer than 255 but I get strange errors like:
> > >
> [...]
>
> > I believe there is a compiler switch.
>
>
> If there is, I cannot find it. {$H} does nothing and I re-read the
> portion of the docs that deal with the sting types again and I don't
> see what I'm doing wrong.

{$H+}
or
{$H-}

definitely works.

>
> If I declare "stmp: ansiString;" then the executable compiles and
> links fine but the strings don't actually work.  For example, I
> "readln(txt,stmp);" and stmp only receives the first 255 columns of
> the file.

what version are you using ?

Michael.


_______________________________________________
fpc-pascal maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to