You must uses this in a method.
For example
ConnectionAvailable() As Boolean
// the code I sent
In your project you can say
If ConnectionAvailable = false then
// skip update code
else
// here the update method
end if
Johan
On 09/04/2007, at 12:10 PM, Joshua Coventry wrote:
> With your syntax I get an error on the return true/false
> statements. :-/
>
> On 9 Apr 2007, at 10:58, jis wrote:
>
>> I simply use
>>
>> dim http as new HTTPSocket
>> http.yield = true
>> dim temp as String = http.get("http://www.apple.com", 5)
>> if len(temp) > 0 then
>> return true
>> else
>> return false
>> end if
>>
>> Johan Simons
>>
>> On 09/04/2007, at 10:56 AM, Joshua Coventry wrote:
>>
>>> How do I check if the user of my program has an active Internet
>>> connection? My program can check for updates online, but if the user
>>> does not have any Internet connection, it makes the application
>>> beachball (I'm on OS X) and it keeps doing that unless I force quit
>>> the app. Any suggestions on how to prevent this behavior?
>>>
>>> --
>>> Joshua Coventry
>>> http://lowendmac.com/coventry/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>