title: how to validate Edit to only numbers & only text in inno setup?
body: <p>Is there a way to limit the characters to numbers and lenght to 10 with no space and another edit for just ?
  its for a phone number, and name that needs to have no spaces, dont have an idea how to do it. Found a code that try some ways to implement but dont work
  here is what I found for dont allow letters.</p>
  
  <pre><code>procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
  begin
    if (Key in ['a'..'z']) or (Key in ['A'..'Z'])  then
      Key := #0;
  end;
  </code></pre>
  
  <p>Here for dont allow numbers:  </p>
  
  <pre><code>procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
  begin
    if Key in ['0'..'9'] then
      Key := #0;
  end;
  </code></pre>
  
  <p>and this for no space:</p>
  
  <pre><code>procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
  begin
    if key = Char(VK_SPACE) then
      Key := #0;
  end;
  </code></pre>
  
  <p>can implement something similar in inno?</p>