title: How do I check if an array contains particular index in Pascal?
body: <p>E.g. I have this array:</p>
  
  <pre><code>type
      OptionRange = array[ 1..9 ] of integer;   
  </code></pre>
  
  <p>How do I check if array[x] exists? </p>
  
  <p>Actually, I want to limit user input with the array index. Am I doing the wrong thing? Is there a better practical solution?</p>