AppTitle(variable) [SOLVED]

Blitz3D Forums/Blitz3D Beginners Area/AppTitle(variable) [SOLVED]

0x00(Posted 2016) [#1]
I want to set window title with variable

Code wont work:

Graphics3D (480,320,32)

mytitle = "hello"
AppTitle(mytitle)
While Not KeyDown(1)
Wend

Code works but not as i want:

Graphics3D (480,320,32)

AppTitle("hello")
While Not KeyDown(1)
Wend


_PJ_(Posted 2016) [#2]
You need to declare mytitle as a STRING variable, otherwise it is interpreted as an integer by default.

mytitle$="hello"
AppTile(mytitle$)


To see the difference in another way, consider this:

mytitle%=43
AppTitle(mytitle)


0x00(Posted 2016) [#3]
thanks