On Mar 24, 2006, at 10:38 AM, Jerry Fritschle wrote:

response = get(url, 7)

This works.  Thank you.

Odd, though, that the error I got was "requires fewer parameters than were passed" rather than "you must use the value returned by this function."

Well technically both errors are correct; but how is the compiler going to know which function you wanted to use? All the compiler knows is that the function you called doesn't exist.

Depending on how you use it, httpsocket.get performs either as a function (i.e, returns a value) or a normal method.

There are actually four variations to the Get() method:

    // uses the events:
    Get(url As String)
    Get(url As String, File As FolderItem)

    // returns a string
    Get(url As String, timeout As Integer) As String

    // returns a boolean
Get(url As String, File As FolderItem, Timeout As Integer) As Boolean

Perhaps the documentation needs to be tweaked. If I decide I really think so, I'll go through REAL's system to request it.

This is true. The current implementation of the REALbasic help system does not do a good job with documenting overloaded methods. In this case, the REALbasic 2006r1 documentation does not even mention *in* the Get() entry that the function can return a string or a boolean depending on the parameters. It does use the return value in the example on the main HTTPSocket entry.

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to