1 (edited by prahousefamily 2016-09-02 08:30:23)

Topic: How to check can access internet

How to edit script for check can use internet  access  ???

even button click
if can access or ping  'www.google.com' 
then
show message := ' you can use internet'
else
show message := ' you can not use internet'
end;

Help me please !!!

My Visual Database : I Love You
Easy For Beginner Student For Me

Re: How to check can access internet

Check out this example

    if HTTPGet('http://google.com')='' then
    begin
        ShowMessage('You can not use the internet.');
    end else
    begin
        ShowMessage('You can use the internet.');
    end;

But when Internet don't work, you also will get error message like "Host socket error".

Dmitry.