Re: [fpc-pascal] Map of values to array of records

2011-12-26 Thread Jiří Pavlovský
On 26.12.2011 12:50, Howard Page-Clark wrote: On 25/12/11 10:07, Jiří Pavlovský wrote: What do you mean ? I mean the code below works ok, so I don't undestand why it doesn't compile when I use similar construct inside a function. const ranges: array [1..2] of TMyRec = ( (Start:

Re: [fpc-pascal] Map of values to array of records

2011-12-26 Thread Howard Page-Clark
On 25/12/11 10:07, Jiří Pavlovský wrote: What do you mean ? I mean the code below works ok, so I don't undestand why it doesn't compile when I use similar construct inside a function. const ranges: array [1..2] of TMyRec = ( (Start:0;Stop:3), (Start:4;

Re: [fpc-pascal] Map of values to array of records

2011-12-25 Thread Jiří Pavlovský
On 25.12.2011 22:53, ik wrote: 2011/12/25 Jiří Pavlovský mailto:j...@getnet.cz>> Hello, how can I create two level map where value is array of records? These records are constant - I don't need to compute them or anything. I'm quite new to pascal and for gods sake cannot f

Re: [fpc-pascal] Map of values to array of records

2011-12-25 Thread ik
2011/12/25 Jiří Pavlovský > Hello, > > how can I create two level map where value is array of records? These > records are constant - I don't need to compute them or anything. > I'm quite new to pascal and for gods sake cannot figure it out. I tried to > use TFPGMap for that. > > I mean somewhe

[fpc-pascal] Map of values to array of records

2011-12-25 Thread Jiří Pavlovský
Hello, how can I create two level map where value is array of records? These records are constant - I don't need to compute them or anything. I'm quite new to pascal and for gods sake cannot figure it out. I tried to use TFPGMap for that. I mean somewhere in the code I get two values and ba