Just starting out? Need help? Post your questions and find answers here.
Posts: 16
Joined: Sat Mar 24, 2018 9:58 am

HTTPRequest wait

by Efo74 Sun May 19, 2019 12:14 pm

Hi, I have a problem with handling "HTTPRequest" requests.
I'll explain:
For example: what I would like to do is run a php script that returns a variable to me, after reading the variable, I want to open a window, which contains a text control with the value of the previously read variable.

If I open the form inside the HTTPRequest callback function ... like this:

Callback function for httprequest:

If Success
Debug Result$
Debug "HTTPRequest(): Error"

It works perfectly, but I wouldn't want to do it in this way.

I want make it in this way:

1) HTTPRequest ....

2) Wait for Request complete

3) frm_Example(Var$)

How Can I make a function that wait for HTTPRequest terminate ?

Is Possible ?
Thank you for the support.
Return to Coding Questions

Who is online

Users browsing this forum: No registered users and 2 guests