[fpc-pascal] Version 2.1.4
RainerStratmann at t-online.de
Sat Jun 2 21:33:46 CEST 2007
Am Samstag, 2. Juni 2007 20:54 schrieb Michael Van Canneyt:
> On Sat, 2 Jun 2007, Rainer Stratmann wrote:
> > Am Samstag, 2. Juni 2007 20:16 schrieb Florian Klaempfl:
> > > > How can I assign "normal" pascalstrings?
> > >
> > > shortstring
> > what does
> > var s:string;
> > in delphimode mean?
> > ansistring or shortstring?
> > if ansistring, how can I get access to a "normal" pascal (short)string
> > with maximum length of 12?
> > var s:shortstring;
> > does not work in delphi mode.
> Obviously, since the definition of shortstring is:
> ShortString = String;
> So actually your above statement is equivalent to writing
> Var s:string;
> which, you'll agree, is wrong :-)
OK, this part I understand, now, thanks for explanation.
I'm not deep involved in compiler programming, but it is good to know that
string also works.
Now, I use the www.frameworkpascal.com for a DOS Program and ported it to
Linux, so that the program can run with DOS and Linux. Let it run in DOS with
fpc compiler seems more work, so I run the program in DOS with the
I did it now with additional compiler args -Sh- and it works, thanks.
More information about the fpc-pascal