title: How can I get a char of a String in delphi 7?
body: <p>This is something that should be easey but I just can´t get it work.
  I come from java so maby I have a error in my thinking here.
  What I want to do is that I have a string with two letters like 't4' or 'pq'.
  Now I just want to get each of the chracters in the string as an own string.
   So I do:</p>
  
  <pre><code>firstString := myString[0];
  </code></pre>
  
  <p>but I don´t even get this compiled.
  So I figured that they start counting form 1 and put 1 as an index.
  Now I do this in a while loop and the first time I go through it it works fine. Then the second time the results are just empty or wrong numbers. 
  What am I missing here?
  (I also tried copy but that doesn´t work either!)</p>
  
  <pre><code>while i &lt; 10 do
            begin
                  te := 'te';
                  a := te[1];
                  b := te[2];
                 i := i +1;
            end;
  </code></pre>
  
  <p>the first loop a is 't' and b is 'e' as I would expect. The second time a is '' and b ist 't' which I don´t understand! </p>