Einzelnen Beitrag anzeigen

Benutzerbild von DataCool
DataCool

Registriert seit: 10. Feb 2003
Ort: Lingen
909 Beiträge
 
Delphi 10.3 Rio
 
#8

AW: Indy 10: Verwaltung von Ports

  Alt 8. Jul 2010, 09:19
Hi,

Delphi-Quellcode:
procedure LoadPortsFromFile2ListBox(Const AFileName : String);
Var i : Integer;
    strLTxt : TStringList;
begin
  strLTxt := TSTringList.Create;
  try
    myPortListBox.items.clear;
    if not FileExists(AFileName) then
      exit;
    strLTxt.LoadFromFile(AFileName);
    for i := 1 to strLTxt.Count - 1 do
      myPortListBox.items.add(strLTxt[i]);
  finally
    strLTxt.free;
  end;
end;
Greetz Data
Der Horizont vieler Menschen ist ein Kreis mit Radius Null, und das nennen sie ihren Standpunkt.
  Mit Zitat antworten Zitat