It is currently Sun Oct 25, 2020 3:13 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [5.72] Form Designer caption-as-variable issue
PostPosted: Sat Oct 17, 2020 9:29 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Thu Jan 27, 2011 12:00 pm
Posts: 233
Location: DE
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:
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:
Window_0 = OpenWindow(#PB_Any, x, y, width, height, Yo!, #PB_Window_SystemMenu)

Quote:
...Syntax error...


PB 5.72 Windows 10 x86

_________________
BSI: CERT-Bund Meldungen


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye