I found this in the forums http://www.scirra.com/forum/how-do-you-set-text-to-a-global-variable_topic48160.html, but it is only dealing with Construct Classic.
How can one set text to a global variable in C2?
<img src="http://dl.dropbox.com/u/44787590/set_text_to_global_variable.jpg" border="0">
I have a global variable (number) set. on start of layout the system runs an Ajax Request to a php file that returns data from a database for the user.
On Ajax complete I set the value of the global variable to the returned Ajax.LastData.
But when I try to set the text block to display the new global variable (every tick) it just shows the text "stat1" instead of the global variable value.
I have tried setting text to ""& stat1 which displays a NaN error.