how to display global variable on screen

For questions about using Classic.

Post » Mon Feb 15, 2010 8:03 pm

like to display the global variable score on screen, can do this with a private variable easily enough, but would much prefer the use of a global so that score carries over from one screen to the next.

Any suggestions or help much appreciated

Cheers

Brett
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 15, 2010 8:06 pm

Set Text.Text to global('variable')
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Feb 15, 2010 8:22 pm

Hi Keep getting error message that Global is not an expression in Text or Global cannot follow Text, would you please write it as it should look in the on screen box eg:-

Text.Global('score')

That is what it looks like at the moment and it gives the error message

Cheers

Brett
B
2
G
2
Posts: 12
Reputation: 674

Post » Mon Feb 15, 2010 8:32 pm

just global('score')

the text. is causing ur problem
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Mon Feb 15, 2010 8:35 pm

Problem solved,

Many thanks to all who took the time to look and answer, nice to find such a helpful forum

Cheers

Brett
B
2
G
2
Posts: 12
Reputation: 674


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests