strPadL fix
This commit is contained in:
parent
7d0997a6fa
commit
cc010ba63c
|
@ -72,8 +72,9 @@ Begin
|
||||||
If Length(Str) >= Len Then
|
If Length(Str) >= Len Then
|
||||||
Result := Copy(Str, 1, Len)
|
Result := Copy(Str, 1, Len)
|
||||||
Else Begin
|
Else Begin
|
||||||
FillChar (TStr, Len, Ch);
|
FillChar (TStr[1], Len, Ch);
|
||||||
SetLength(TStr, Len - Length(Str));
|
SetLength (TStr, Len - Length(Str));
|
||||||
|
|
||||||
Result := TStr + Str;
|
Result := TStr + Str;
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
|
|
Loading…
Reference in New Issue