Android Question Variable ProgressBarDownload is not initialized

johnaaronrose

Active Member
Licensed User
Longtime User
I'm getting a "Variable ProgressBarDownload is not initialized Warning #11" on the "Private ProgressBarDownload As B4XView" line below:
B4X:
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI
    Private Title As String ="HTTPS"
    Private ProgressBarDownload As B4XView
    Private ISFolder As String
    Private FileName As String = "JewishWorld.db"
    Private ASFolder As String
    Private FileSize As Long
End Sub
PS I have the ProgressBarDownload view 'defined' in the layout as a ProgressBar
 

johnaaronrose

Active Member
Licensed User
Longtime User
Here are the relevant bits of coding in B4XMainPage - the layout is https.bal (I haven't previously found a problem with an upper case name when loading the layout as opposed to that name in lowercase for its filename) :
B4X:
Sub Class_Globals
    Private Root As B4XView
    Private xui As XUI
    Private Title As String ="HTTPS"
    Private ProgressBarDownload As B4XView
End Sub

'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout(Title)
    B4XPages.SetTitle(Me, Title)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…