title: Access Violation 00000000 when using Delete();
body: <p>I am trying to delete every character from the beginning of my string, that is not an Alpha-character. </p>
  
  <p><strong>However</strong>, when there are only non-alpha characters (like "!!" or "?!?") in the string, it spits out an Access Violation!</p>
  
  <p>Here is my code:</p>
  
  <pre><code>  // The Log(); is a routine that adds stuff to my log memo.
    Log('Begin Parse');
    while not IsLetter(ParsedName[1]) do
     begin
       Log('Checking Length - Length is '+IntToStr(Length(ParsedName))+' ...');
       if Length(ParsedName) &lt;&gt; 0 then
       Begin
       Log('Deleting Char ...');
       Delete(ParsedName,1,1);
       Log('Deleted Char ...');
       End;
       Log('Checking Length - Length is now '+IntToStr(Length(ParsedName))+' ...');
     end;
     // It never reaches this point!
     Log('End Parse');
  </code></pre>
  
  <p>This is what my log produces:</p>
  
  <pre><code>21:51:19: Checking Length - Length is 2 ...
  21:51:19: Deleting Char ...
  21:51:19: Deleted Char ...
  21:51:19: Checking Length - Length is now 1 ...
  21:51:19: Checking Length - Length is 1 ...
  21:51:19: Deleting Char ...
  21:51:19: Deleted Char ...
  21:51:19: Checking Length - Length is now 0 ...
  21:51:19: Access violation at address 007A1C09 in module 'Project1.exe'. Read of address 00000000 
  </code></pre>
  
  <p>As you see, it happens right after all the chars have been deleted. I assume the problem lies that somehow, I am trying to access something that is not there, but <strong>how</strong> I am doing that, I cannot see.</p>
  
  <p>EDIT: Yes, I know it's a <strong>stupid</strong> question and all that stuff - I just oversaw something. Don't tell me that doesen't ever happen to you ;)</p>