Advertisement
believe_me

Untitled

May 18th, 2022
2,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. procedure TEditForm.DataEditKeyPress(Sender: TObject; var Key: Char);
  2. begin
  3.     if (Key <> #08) then
  4.     begin
  5.         if length((Sender as TEdit).text) = 0 then
  6.         begin
  7.             if not (Key in BIG_LETTERS) then
  8.                 Key := #0
  9.         end
  10.         else
  11.             if not(Key in SMALL_LETTERS) then
  12.                 Key := #0;
  13.     end;
  14. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement