list initialization

pcbtmr

Member
Licensed User
Longtime User
Have this bit of code

Sub Globals
Dim List1,List2 as List
End Sub

Sub Activity_Create(FirstTime as boolean)
List1=SU.LoadCSV()....
End Sub

Sub Button_Click
List2.Add("text")
end sub

Compiler is flagging List2 should be initialized but is not flagging List1.
Why is this?

Thanks.
 

ukimiku

Active Member
Licensed User
Longtime User
Maybe .LoadCSV implicitly initializes the list, while .Add does not.
Regards,
 
Upvote 0
Top