Page 1 of 1

[5.72] Form Designer caption-as-variable issue

Posted: Sat Oct 17, 2020 9:29 am
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