soldza

Untitled

May 22nd, 2012
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var
  2. Ret, novyRet: string;
  3. i, posun: integer;
  4. begin
  5. Ret:= Edit1.Text;
  6. novyRet:= '';
  7. posun := ord('a') - ord('A');
  8. for i:=1 to length(Ret) do
  9. if (Ret[i] >= 'a') and (Ret[i] <= 'z') then
  10. novyRet:= novyRet + chr (ord(Ret[i]) - posun)
  11. else novyRet:= novyRet + Ret[i];
  12. Memo1.Lines.Add (novyRet);
  13. end;
Advertisement
Add Comment
Please, Sign In to add comment