--- FreeFL <[EMAIL PROTECTED]> wrote:
> I pass a verified url, as in my example
> Checkpage("http://freefl.free.fr/presentvu.htm") and the
> ttt.Get(url)
> function returns an empty s string because no connexion is set.
>
> But if I call with a literal in the function :
> ttt.Get("http://freefl.free.fr/presentvu.htm") it works fine
> and
> makes the connexion.
> So the problem apparently lies within the .Get call not
> accepting a
> variable parameter.
>
> Is there a workaround ?
I just made a quick app with an editfield and a pushbutton. I
defined a CheckPage method like this:
Sub CheckPage(url As String)
Dim ttt As new HTTPSocket
EditField1.Text = ttt.Get(url, 3)
End Sub
The PushButton1.Action method just says
CheckPage "http://freefl.free.fr/presentvu.htm"
When I click the button, the HTML for presentvu.htm comes up
right away. On my system, at least, ttt.Get works just fine with
string variables. I have no idea how to make a system behave the
way yours is behaving.
Try making just a simple test app like I did. If it still fails,
I'd trash the REALbasic preferences file, and re-install RB. If
the test app works, though, I'd suspect a corrupted project file.
Maybe if you save the project as XML and then re-load it?
Sometimes that helps.
Mark Nutter
Quick and easy regex creation and debugging!
http://www.bucktailsoftware.com/products/regexplorer/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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>