title: delphi declaring size of ansi string
body: <p>Its easy to define a string at the size of 3 (in old delphi code)</p>
  
  <pre><code>st:string[3];
  </code></pre>
  
  <p>now, we wish to move the code to ansi</p>
  
  <pre><code>st:ansiString[3];
  </code></pre>
  
  <p>won't work!</p>
  
  <p>and for adcanced oem type</p>
  
  <pre><code>st:oemString[3]; 
  </code></pre>
  
  <p>same problem, where</p>
  
  <pre><code>type
    OemString = Type AnsiString(CP_OEMCP);
  </code></pre>
  
  <p>how could be declared a fixed length ansi string and the new oem type?</p>
  
  <p>update: i know it will create a fixed length string. it is part of the design of the software to protect against mistakes, and is essential for the program.</p>