Android Question thread question(not initialized-not used)

MohMor

Member
hello,
i am using thread in my poject. but there is some warning in my code. i dont know why:
Main - 29: Variable 't1' was not initialized. (warning #11)
Main - 57: Sub 'count' is not used. (warning #12)
Main - 66: Sub 'show' is not used. (warning #12)
but i initialized t1 and also, i am using sub 'show' and sub 'count' in my project.
project code is attached below.
 

Attachments

  • THREAD1.zip
    91.2 KB · Views: 166

MohMor

Member
OK.
t1.initialise NOT t1.initialize
BUT, i am using a course that uses B4A version 5.2 and my B4A version is 10.5. in 5.2 version, that program works correctly.
so can you tell me what is my problem, please?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
As Erel said - Threading is not normally used nowadays, it was useful early in B4A development.
Main - 29: Variable 't1' was not initialized. (warning #11)
Not an error. Note the spelling of Thread.Initialise (I'm British and I wrote the Threading library - that's how proper English spells it but the IDE doesn't know this )

Main - 57: Sub 'count' is not used. (warning #12)
Main - 66: Sub 'show' is not used. (warning #12)
Not an error. the IDE sees they are not called directly - it doesn't know about their use in literal strings.
 
Upvote 0

MohMor

Member
OK. so i find that my code is not incorrect. but as you see in my project above, when we press "btnthread" in the designer window, "lblthread" in front of btn, thread must count numbers from 1 to 100. but it does not work. i dont know what is the problem?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…