Delphi. У Indy10 пропал метод LoadList.

Discussion in 'С/С++, C#, Rust, Swift, Go, Java, Perl, Ruby' started by Artist666, 28 Oct 2017.

  1. Artist666

    Artist666 Member

    Joined:
    24 Nov 2015
    Messages:
    100
    Likes Received:
    7
    Reputations:
    0
    Пытаюсь собрать старый проект, а мне ошибка вылезает:
    E2003 Undeclared identifier: 'LoadList'

    7я строка:
    Code:
    function GetAllDirs: TStringList;
    var eList: TStringList;
        i: integer;
    begin
      eList := TStringList.Create;
      frmMain.IdFTP.List(eList);
      frmMain.IdFTP.DirectoryListing.LoadList(eList); // <<<<<<<<<<<<<<<<<<<<<<
      eList.Clear;
      for i := 0 to frmMain.IdFTP.DirectoryListing.Count -1 do begin
        if frmMain.IdFTP.DirectoryListing.Items[i].ItemType = ditDirectory then
          eList.Add(frmMain.IdFTP.DirectoryListing.Items[i].FileName);
      end;
      Result := eList;
    end;
    В IdFTPList.pas:
    Как быть?
     
  2. M_script

    M_script Members of Antichat

    Joined:
    4 Nov 2004
    Messages:
    2,581
    Likes Received:
    1,317
    Reputations:
    1,557
    Что делает эта строка?
     
  3. Artist666

    Artist666 Member

    Joined:
    24 Nov 2015
    Messages:
    100
    Likes Received:
    7
    Reputations:
    0
    А х. её з.