PSN jschut_82 | Xbox: JSchut82
Trim?
Trims leading and trailing spaces and control characters from a string.
"The shell stopped unexpectedly and Explorer.exe was restarted."
wow zo simpel dat ik daar zelf niet aangedacht heb .......
PSN jschut_82 | Xbox: JSchut82
Tsja, je moet het maar net weten.Op maandag 08 april 2002 14:50 schreef JSchut het volgende:
wow zo simpel dat ik daar zelf niet aangedacht heb .......
"The shell stopped unexpectedly and Explorer.exe was restarted."
Of zelf maken:
while MP3Naam[Length(MP3Naam)]=' ' do Delete(MP3Naam, Length(MP3Naam),1);
while MP3Naam[Length(MP3Naam)]=' ' do Delete(MP3Naam, Length(MP3Naam),1);
Mother, will they like this song?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| function Trim(const S: string): string;
var
I, L: Integer;
begin
L := Length(S);
I := 1;
while (I <= L) and (S[I] <= ' ') do Inc(I);
if I > L then Result := '' else
begin
while S[L] <= ' ' do Dec(L);
Result := Copy(S, I, L - I + 1);
end;
end; |
"The shell stopped unexpectedly and Explorer.exe was restarted."
Pagina: 1