[futurebasic] Re: [FB] URL the one for me

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2003 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Thu, 18 Dec 2003 05:14:32 -0500
On Thursday, December 18, 2003, at 04:47  AM, Robert Purves wrote:

>
> Robert Covington wrote:
>
>> Time for a "Check for new version item" in my menu I think.
>>
>> Using Open "Unix" and one of several Ken demos, how can  I know if 
>> there has been a error (So I can say "No connection present") or 
>> otherwise know if there is an available internet connection so I can 
>> dim/undim  the menu choice? Anybody handled that yet?
>
> A quick partial solution:
>
> ...
> DIM fnd,start
> out = "Couldn't contact " + urlStr // *** add this line ***
> open "UNIX", 32, "curl -LsS " + urlStr
> ...
>
>
> Robert P.

Thanks Dr P.

I did a similar thing...just setting it to "" and if it's still that 
past file close time, I know that there was a problem , and I then 
query the user via dialog as to an active internet connection being 
present. Works cool now if not connected, or connected.

Robert Bob