<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 25.12.2011 22:53, ik wrote:
    <blockquote
cite="mid:CAOccsKB=y9nM5Y-xDJzUUg_cFB5aNUQ7sg=uF3dY-YE2iiw7Eg@mail.gmail.com"
      type="cite">
      <div dir="ltr">2011/12/25 Jiří Pavlovský <span dir="ltr"><<a
            moz-do-not-send="true" href="mailto:jira@getnet.cz">jira@getnet.cz</a>></span><br>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            Hello,<br>
            <br>
            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.<br>
            I'm quite new to pascal and for gods sake cannot figure it
            out. I tried to use TFPGMap for that.<br>
            <br>
            I mean somewhere in the code I get two values and based on
            these I need to get those records.<br>
            <br>
            my dream would be something like<br>
            myArrayOfRecords := myMap[some_value][other_value];<br>
          </blockquote>
          <div><br>
            type<br>
               TMyRec = record<br>
                 Field   : integer;<br>
                 Empty,<br>
                Check : Boolean;<br>
               end;<br>
            <br>
             TMyMap = array[0..Something] of TMyRec;<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Thanks, but that is not want I need.<br>
    I don't want array, but a two level map where keys are not
    necessarily integers.<br>
    <br>
    <br>
    <br>
    <blockquote
cite="mid:CAOccsKB=y9nM5Y-xDJzUUg_cFB5aNUQ7sg=uF3dY-YE2iiw7Eg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_quote">
          <div>
              <br>
          </div>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            <br>
            <br>
            OTOH similar construct works in "const" section. So I'm
            quite puzzled.<br>
          </blockquote>
          <div><br>
            What do you mean ?<br>
             </div>
        </div>
      </div>
    </blockquote>
    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.<br>
    const ranges: array [1..2] of TMyRec =<br>
         (<br>
             (Start:    0;    Stop:    3), <br>
             (Start:    4;    Stop:    7) <br>
           );<br>
    <br>
  </body>
</html>