How would you wait for a response to PostText?

This is what I want to do.


So essentially I want my DoPost function to post data or a file to my web server, and only exit when a response is received from my web server.

This does not seem to be working as expected.

Set a variable for each different Post, then test for this in Web.GotText.

Remove the while loop and do all further processing in the Web GotText event


Thought of a better way......put all the posts in a list and then use the gottext block to continue processing the list.

Would be nice to be able to do semiphores in MIT app inventor though.

Would be good to see your blocks solution.....