Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / not executed function in program - absolutely

Author
Message
Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 14th Aug 2014 09:47
Hi, have problem with function calls, rather they pass the compiler. Here is the code for a small program, which queries the map-server coordinates houses in Moscow, from the server receives a response in XML format.
Next is to parse this response, operators and operands. When there is an operator <pos>, the following operand is the coordinates of the house. They are perfectly extracted and converted to their corresponding latitude and longitude of type float, to the condition " if (twostr$ = "pos")". In this condition, the pause Sleep(5000) works great, but the extraction and prepaymania and print - no. That is not happening. Help to understand why what I'm doing wrong



Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 14th Aug 2014 11:49
once you call sleep the program stops updating the screen.
Don't use sleep, put your print statements in a loop that exits after a certain amount of time, like this:
t0# = timer()
repeat
print("my stuff")
sync()
until timer() - t0# > 5.0

Engineer
10
Years of Service
User Offline
Joined: 16th Jul 2014
Location:
Posted: 19th Aug 2014 16:38
Thanks!

I understand that AppGameKit does not allow any liberties rfr C.C++ or Pascal

Login to post a reply

Server time is: 2024-11-25 07:55:33
Your offset time is: 2024-11-25 07:55:33