Do the following test:

1 in Rb open a New Project
2 doubleclick on Window1
3 Select "Open" and type in "Edit mode":

  if ConnectionAvailable then
        msgBox "Available"      // your code what to do
     else
        msgBox "Nope"  // your code what not to do
  end if


4 Click "Add Method"
    enter as Method Name "ConnectionAvailable"
    renter as Return Type "Boolean"
    type in the code-box:

    dim http as new HTTPSocket
      http.yield = true
      dim temp as String = http.get("http://www.lowendmac.com/ 
coventry", 5)
       if len(temp) > 0 then
             return true
       else
            return false
     end if

Johan Simons


On 10/04/2007, at 8:59 PM, Joshua Coventry wrote:

> Right, that makes sense. Having trouble calling the method though,
> since the type is a boolean RB expects me to use a value returned by
> the function - I don't have anything to pass to the method, so I
> don't understand why I cant call it as usual.
>
> --
> Joshua Coventry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to