
26.07.2007, 07:39
|
|
Постоянный
Регистрация: 07.02.2006
Сообщений: 630
Провел на форуме: 12985021
Репутация:
676
|
|
Сообщение от b2mbey
Подскажите, пожалуйста, как в Дельфях определить есть ли подключение к инету, если такое возможно???
Положить компонент TCP на форму и
How can I tell at runtime if I am connected to the internet?
Answer:
You can use the TCP component to retrieve the Local IP address. If it is "0.0.0.0" then there is no connection.
exp:
Код:
procedure TForm1.Button1Click(Sender: TObject);
begin
if TCP1.LocalIp = '0.0.0.0' then
ShowMessage('Your not connected!');
end;
(c)vuithelp.ru
|
|
|