Hi Roser137,
you need to make the "platform" variable a string as you are trying to store a string there and want to treat it as a string.
Here is the updated code (note the $ symbol now telling the compiler "platform" is a string).
I think when you declare and use variables in one statement, the compile does get a bit confused a defaults to integer type.
Declaring your variables before use is a better way to do this (at least that's what I was taught 20 years ago)
SetWindowTitle( "test1" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
width = GetDeviceWidth()
height = GetDeviceHeight()
orientation = GetOrientation()
platform$ = GetDeviceName()
do
Print( ScreenFPS() )
Print( str (width) + "x" + str(height))
Print(orientation)
Print(platform$)
Sync()
loop
cheers
It's late, I'm tired, out of coffee and now I'm wet.