mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
Merge 2208456b87 into 837cc08394
This commit is contained in:
commit
e579eafc28
1 changed files with 7 additions and 15 deletions
|
|
@ -1134,23 +1134,15 @@ begin
|
|||
end;
|
||||
|
||||
procedure ParseLineToList(sLine: String; ssItems: TStrings);
|
||||
var
|
||||
xPos: Integer;
|
||||
begin
|
||||
ssItems.Clear;
|
||||
while sLine <> '' do
|
||||
with ssItems do
|
||||
begin
|
||||
xPos:= Pos(';', sLine);
|
||||
if xPos > 0 then
|
||||
begin
|
||||
ssItems.Add(Copy(sLine, 1, xPos - 1));
|
||||
Delete(sLine, 1, xPos);
|
||||
end
|
||||
else
|
||||
begin
|
||||
ssItems.Add(sLine);
|
||||
Exit;
|
||||
end;
|
||||
Clear;
|
||||
StrictDelimiter := True;
|
||||
Delimiter := ';';
|
||||
if(sLine[Length(sLine)] = ';') then
|
||||
sLine := Copy(sLine, 1, Length(sLine) - 1);
|
||||
DelimitedText := sLine;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue