B4J Question [Solved] xCustomListView - Debug, Release and... other

Discussion in 'B4J Questions' started by LucaMs, May 13, 2019.

  1. LucaMs

    LucaMs Expert Licensed User

    I was searching for a bug in my project: I get a Null Sender when I click a label of a xCustomListView item but only in Release mode :eek:, when...

    trying a new simple project with just a xCustomListView, I saw:

    "Add" method of a xCustomListView in my "real" project:
    upload_2019-5-13_3-5-34.png

    "Add" method of a xCustomListView in my test project:
    upload_2019-5-13_3-5-44.png

    Both projects have:
    upload_2019-5-13_3-2-17.png
     
  2. LucaMs

    LucaMs Expert Licensed User

    Solved the second part of the question: I have to import also XUI Views (BTW, my version is 2.05)
     
  3. LucaMs

    LucaMs Expert Licensed User

    Solved the first part too.

    Inside the click event, before "using" the sender (lblXXX = Sender), I create a new form (without showing it, just the declaration & initialization).
    I don't know why but this "resets", sets the Sender to Null.
     
    Last edited: May 13, 2019
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