LOVEGUN

Procedure Supp_Esp

Oct 21st, 2020 (edited)
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.23 KB | None | 0 0
  1. Procedure supp_esp (var ch:String);
  2. Var
  3. x:integer;
  4. Begin
  5.     x := Length(ch);
  6.   While Pos('  ',ch)<>0 Do
  7.     Delete (ch,Pos('  ',ch),1);
  8.   If ch[1]=' ' Then
  9.     Delete (ch,1,1);
  10.   If ch[x]=' ' Then
  11.     Delete (ch,x,1);
  12. End;
Add Comment
Please, Sign In to add comment