DarGee New Member Licensed User Longtime User Oct 12, 2014 #1 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.
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.
S sorex Expert Licensed User Longtime User Oct 12, 2014 #2 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
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.
Straker Active Member Licensed User Longtime User Oct 12, 2014 #3 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
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).
klaus Expert Licensed User Longtime User Oct 12, 2014 #4 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
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.