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

Discussion in 'iOS Bugs & Wishlist' started by luc-dev, Jun 7, 2019.

Tags:
  1. luc-dev

    luc-dev Member Licensed User

    Hi,

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

    When using (speudo code)
    Code:
    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
    Code:
    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
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice