I am trying to follow the XcustomListView video tutorial and create a list containing three fields. No matter what I change or do I cannot get it to work and I am now getting an error "Parameter name cannot hide variable global name" . I would appreciate some pointers as to what I am doing wrong as I have never used this library before.
Coding Being Used:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Private XUI As XUI
Type ItemValue (lblReceiptID As String)
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
'v0.1 (17/05/2020) - Initial development
Private strVersion As String = "v0.1"
Private lblVersion As Label
Private clvPanel As CustomListView
Private ECReceiptSet As ResultSet
Private lstReceiptID(1) As List
Private lstReceiptDate(1) As List
Private lstReceiptRetailerID(1) As List
Private lstReceiptAmount(1) As List
Private lstReceiptChargeStoreID(1) As List
Private lstReceiptNotes(1) As List
Private lstReceiptPhoto(1) As List
Private lstReceiptClaimID(1) As List
Private lstReceiptClaimPart(1) As List
Private lblReceiptDate As String
Private lblRetailer As String
Private lblReceiptID As String
Private intRetailerID As Int
Private strRetailerName As String
Private strStoreID As Int
Private strStoreName As String
Private lblBack As Label
Private strSQLQuery As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
SelectReceiptList
DateTime.DateFormat = "dd/MM/yy"
Activity.LoadLayout("ECS20")
lblVersion.Text = strVersion
For x = 1 To 5
Dim iv As ItemValue
iv.Initialize
clvPanel.Add(CreateItem(lblReceiptDate, lblRetailer, lblReceiptID), "")
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub CreateItem(lblReceiptDate As String, lblRetailer As String, lblReceiptID As String) As B4XView
Dim p As B4XView = XUI.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, 100%x, 120dip)
p.LoadLayout("ECS20clv")
lblReceiptDate = "22/05/20"
lblRetailer = "Ebay"
lblReceiptID = "2005003"
Return p
End Sub