Android Question I can't fix this error

DarGee

New Member
Licensed User
Longtime User
Hi all, I'm newbie and have a problem with chapter 2 in the beginner guide. I try to read it 100 times but I don't know what I mistake. Could you help me to see what error in line:72.

1111.jpg
 

sorex

Expert
Licensed User
Longtime User
like the error says... that label is not initialized.

did you add it by code or with the designer?

try adding lblResult.initialise("") in the first time part of you app init.

it's also better to paste code instead of screenshots so that can seen all the code.
 
Upvote 0

Straker

Active Member
Licensed User
Longtime User
In b4a the 'controls' (labels, buttons and almost everything) need to be initialized before you van use them.
Only if you use the Designer you don't need to initialize them (the designer performs it for you).
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
If you used the layout from the first program there is an EditText view called edtResult.
This view should be replaced by a Label in the second program.
I suppose that you didn't replace it in the Designer or you didn't change its name from edtResult to lblResult.
Look at pages 40 and 41 in the Beginner's Guide.
 
Upvote 0
Top