I want to quickly compare two lists to see if they contain the same information.
Why does this code say the lists are equal when they are not?
The log shows List1 = List2.
Why does this code say the lists are equal when they are not?
The log shows List1 = List2.
List1=List2:
#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Dim List1 As List
List1.Initialize
Dim List2 As List
List2.Initialize
List1.AddAll(Array As String("value1", "value2"))
List2.AddAll(Array As String(""))
If List1 = List2 Then
Log("List1 = List2")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub