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