Bug? LoadLayout with "Const" parameter doesn't check the layout file

luc-dev

Member
Licensed User
Longtime User
Hi,

As B4i 5.80 is coming soon, I just wanted to report this little bug in the IDE :

When using (speudo code)
B4X:
Sub Process_Globals
Public const rsLayoutFormRecordingMenu = "form_recordingmenu" As String
Private PanelFormInfo As Label

public Sub InitializePage
Main.PageRecordingMenu.RootPanel.LoadLayout(rsLayoutFormRecordingMenu)
End Sub

The IDE doesn't detect the layout file and gives warnings on every component in the layout file.

"The var xxx was not initialized" #11
"No value was assigned to xxx" #10

When using
B4X:
Sub Process_Globals
Private PanelFormInfo As Label

public Sub InitializePage
Main.PageRecordingMenu.RootPanel.LoadLayout("form_recordingmenu")
End Sub

Everything is working as expected

Not a big issue but it would be nice to have it fixed ;)

Best regards and thanks for this great IDE
 
Top