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

B4JExplorer

Active Member
Licensed User
Hi,

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

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

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:
Top