[fpc-pascal] TFPList and the ForEachCall

2011-12-30 Thread Jiří Pavlovský
Hello, could somebody show me an example of how to use TFPList and the ForEachCall? Or point me to a documentation where the proper syntax is explained. I don't know how to write the callback procedure properly ___ fpc-pascal maillist -

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