LWGShane Well-Known Member Licensed User Longtime User Feb 28, 2016 #1 I'm trying to set a form's title in code in relation to what button is clicked on a previous form. I have the correct code, however, B4J is ignoring it and setting the form's title with the property in the visual designer. Is there a workaround or solution on how to create titles in code?
I'm trying to set a form's title in code in relation to what button is clicked on a previous form. I have the correct code, however, B4J is ignoring it and setting the form's title with the property in the visual designer. Is there a workaround or solution on how to create titles in code?
Daestrum Expert Licensed User Longtime User Feb 29, 2016 #2 Working as expected here - form named 'john' in designer, button click changes it to 'jimmy'. Code: Sub Button1_Action MainForm.Title = "jimmy" End Sub I created another form and loaded it then changed button (on mainform) to change the title of the new form, that worked as expected too. Last edited: Feb 29, 2016
Working as expected here - form named 'john' in designer, button click changes it to 'jimmy'. Code: Sub Button1_Action MainForm.Title = "jimmy" End Sub I created another form and loaded it then changed button (on mainform) to change the title of the new form, that worked as expected too.
LWGShane Well-Known Member Licensed User Longtime User Feb 29, 2016 #3 @Daestrum - Solved it. I had the Form.Title code before the code that loads the layout.