Page 1 of 1
Window parameters
Posted: Sun Aug 18, 2013 11:24 am
by michel
Hello,
When selecting in the window option "caption is a variable", the variable is not declared as a string?!
kind regards
Michel
Re: Window parameters
Posted: Sun Aug 18, 2013 12:15 pm
by TI-994A
michel wrote:When selecting in the window option "caption is a variable", the variable is not declared as a string?!
Hello michel. Did you assign any value to the
Caption field in the window's properties?
If the
Caption is a variable option is selected, the value in the
Caption field will be the variable name:
Code: Select all
Window_0 = OpenWindow(#PB_Any, x, y, width, height, something, #PB_Window_SystemMenu)
If the
Caption is a variable option is not selected, the value in the
Caption field will be the actual caption string:
Code: Select all
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "something", #PB_Window_SystemMenu)
If both fields are left blank, the caption would be a null string:
Code: Select all
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu)
Hope that's what you're referring to.

Re: Window parameters
Posted: Sun Aug 18, 2013 2:04 pm
by michel
Hello,
In my mind the option "caption is a variable" generates a variable which can be modified during the runtime. So for example switch to another language. I my case the program turn to error because the variable is not declared as a string.
Michel
Re: Window parameters
Posted: Sun Aug 18, 2013 4:29 pm
by Polo
It's up to you to define the variable where you want
