Bug? [4.2] Form ignores Form.Title code.

LWGShane

Well-Known Member
Licensed User
Longtime User
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
Working as expected here - form named 'john' in designer, button click changes it to 'jimmy'.
B4X:
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:

LWGShane

Well-Known Member
Licensed User
Longtime User
@Daestrum - Solved it. I had the Form.Title code before the code that loads the layout.
 
Top