[5.72] Form Designer caption-as-variable issue

Post bugs related to the IDE here
es_91
Enthusiast
Enthusiast
Posts: 242
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

[5.72] Form Designer caption-as-variable issue

Post by es_91 »

Create a new form, uncheck the "caption is a variable?" checkbox if it is per-default checked.
Write something into your caption like "Yo!" and compile. The program runs perfectly with the "Yo!" as a string in the OpenWindow () command.

Code: Select all

Window_0 = OpenWindow(#PB_Any, x, y, width, height, "Yo!", #PB_Window_SystemMenu)
Store your file, close it and reload it.
Now the read code is interpreted as Yo! being a varibale and the checkbox of this becomes checked.

Code: Select all

Window_0 = OpenWindow(#PB_Any, x, y, width, height, Yo!, #PB_Window_SystemMenu)
...Syntax error...
PB 5.72 Windows 10 x86