Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > > I mean including the possibilties to have non-255 sizes. > > > > var x : string[4]; > > > > I suppose? > > Apparantly so yes. Assumed that would equal to ansistring[4], but it do

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 11 Feb 2006, at 17:40, Marco van de Voort wrote: > > > > >> Because shortstring is defined as String[255] > > > > > > Hmm. How do I get real shortstring behaviour in delphi mode then? > > > > A string[255] is identical to a "real shortstrin

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > I mean including the possibilties to have non-255 sizes. > > var x : string[4]; > > I suppose? Apparantly so yes. Assumed that would equal to ansistring[4], but it does to tp string[4]. _

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Felipe Monteiro de Carvalho
On 2/11/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > I mean including the possibilties to have non-255 sizes. var x : string[4]; I suppose? -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 11 Feb 2006, at 17:40, Marco van de Voort wrote: > > >> Because shortstring is defined as String[255] > > > > Hmm. How do I get real shortstring behaviour in delphi mode then? > > A string[255] is identical to a "real shortstring". I mean including the possibilties to have non-255 sizes. __

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Jonas Maebe
On 11 Feb 2006, at 17:40, Marco van de Voort wrote: Because shortstring is defined as String[255] Hmm. How do I get real shortstring behaviour in delphi mode then? A string[255] is identical to a "real shortstring". Jonas ___ fpc-pascal maillist

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On Sat, 11 Feb 2006, Marco van de Voort wrote: > > > > On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > > > > > I noticed that declaration of variable like: > > > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > > > declare a > > > > variable to get few char string inst

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Michael Van Canneyt
On Sat, 11 Feb 2006, Marco van de Voort wrote: > > On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > > > I noticed that declaration of variable like: > > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > > declare a > > > variable to get few char string instead of full le

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Marco van de Voort
> On 10 Feb 2006, at 20:31, Andrzej Baran wrote: > > > I noticed that declaration of variable like: > > a:string[1]; is not valid any more in fpc-2.0.2, so how can I > > declare a > > variable to get few char string instead of full length > > It works here, even if ansistrings are the default (

Re: [fpc-pascal] string in fpc

2006-02-11 Thread Jonas Maebe
On 10 Feb 2006, at 20:31, Andrzej Baran wrote: I noticed that declaration of variable like: a:string[1]; is not valid any more in fpc-2.0.2, so how can I declare a variable to get few char string instead of full length It works here, even if ansistrings are the default ({$h+} or Delphi m