B4J Question How to determine if a B4J class is initialized, inside the class

Discussion in 'B4J Questions' started by B4JExplorer, Mar 12, 2015.

  1. B4JExplorer

    B4JExplorer Active Member Licensed User


    If you are executing a method from a B4J class, but you don't want to allow the caller to execute the method, unless its class instance is already initialized, how do you do that?

    I tried using

    If Me.IsInitialized
    from inside the method, but hovering over this line, says there is a missing parameter.
  2. stevel05

    stevel05 Expert Licensed User

    You can set up your own class global variable and set it true before the initialized sub has completed.
    Last edited: Mar 12, 2015
    B4JExplorer likes this.
  3. B4JExplorer

    B4JExplorer Active Member Licensed User

    Sounds like an easy way to implement it. Ok, thanks Steve.
  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