Wow!
The debugger is bugged
Try this code and keep single-stepping it. You will see:
1. Integers are OK.
2. Screen Output is OK
3. Log() output is OK
4. Strings with a hardcoded value before a breakpoint hits have a value
5. After first breakpoint, they never get updated again
6. getCurrentTime() is never output to the debug window, even when enclosed by other hardcoded values
So...your code will be ok, but the debugger needs fixing!
// Project: test
// Created: 2016-02-10
// set window properties
SetWindowTitle( "test" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
global t as string
global y
global x as string
global z as string
z = "Boo!"
do
t = GetCurrentTime()
//t = Left(t, 5)
x = "Time : " + t + ": "
inc y , 1
z = z + " : "
log ("x = " + x)
log("z = " + z)
log("t = " + t)
Print( t )
print(x)
Sync()
loop
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt