I have a problem that I can't seems to be able to fix.The error, when I start the app on the phone is"Object should first be initialized (Label) I have a few lables so I am not sure which one it is but why would I get an error like that?
If you are modifying the Label and the label hasn't been initialized you will get this error, say for example, you are changing the text of a label and the label is not initialized the error you described will popup.
If you use the designer to create your layouts you have to click on: Tools -> Generate Members and B4A will initialize them automatically but if you do it manually then you will have to do something like:
B4X:
Dim MyLabel As Label
MyLabel.Initialize("MyLabel")
If you use the designer to create your layouts you have to click on: Tools -> Generate Members and B4A will initialize them automatically but if you do it manually then you will have to do something like:
B4X:
Dim MyLabel As Label
MyLabel.Initialize("MyLabel")
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.