Changeset 9 for trunk/UNetworkTest.pas
- Timestamp:
- Feb 11, 2008, 10:27:49 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:ignore
set to
*.dcu
*.exe
*.identcache
*.dsk
*.~dsk
Network.cfg
-
Property svn:ignore
set to
-
trunk/UNetworkTest.pas
r2 r9 29 29 procedure SpinEdit1Change(Sender: TObject); 30 30 procedure ComboBox1Change(Sender: TObject); 31 procedure FormDestroy(Sender: TObject); 31 32 private 32 33 { Private declarations } … … 66 67 Row: string; 67 68 69 const 70 NetworkFileName = 'Network.cfg'; 71 68 72 function Parse: string; 69 73 begin … … 77 81 PingList := TPingList.Create(True); 78 82 ChDir(ExtractFileDir(Application.ExeName)); 79 AssignFile(Soubor, 'Network.cfg');80 Reset(Soubor);83 AssignFile(Soubor, NetworkFileName); 84 if FileExists(NetworkFileName) then Reset(Soubor) else Rewrite(Soubor); 81 85 SetLength(Devices, 1); 82 86 while not Eof(Soubor) do begin … … 102 106 end; 103 107 108 procedure TNetworkTest.FormDestroy(Sender: TObject); 109 begin 110 PingList.Free; 111 end; 112 104 113 procedure TNetworkTest.FormShow(Sender: TObject); 105 114 begin
Note:
See TracChangeset
for help on using the changeset viewer.