Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
Private btnAutomataUrites As B4XView
Private btngetTokenForAutomata As B4XView
Private btngetTokenForMerchant As B4XView
Private btnPoharEladas As B4XView
Private btnPoharValtas As B4XView
Private btnTCP As B4XView
Private cl As CustomListView
Dim cs As CSBuilder
Private B4XComboBox1 As B4XComboBox
End Sub
'You can add more parameters here.
Public Sub Initialize As Object
Return Me
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("SzervizPage")
B4XPages.SetTitle(Me, "Szerviz")
pageInit
End Sub
'You can see the list of page related events in the B4XPagesManager object. The event name is B4XPage.
private Sub pageInit
B4XComboBox1.cmbBox.Clear
B4XComboBox1.cmbBox.Add("VÁLASSZ")
For i = 1 To 10
If i > 9 Then
B4XComboBox1.cmbBox.Add($"REPOHAR000${i}"$)
Else
B4XComboBox1.cmbBox.Add($"REPOHAR0000${i}"$)
End If
Next
End Sub
Private Sub btngetTokenForMerchant_Click
cl.Clear '<-- java.lang.NullPointerException: Attempt to invoke virtual method 'void anywheresoftware.b4a.objects.collections.List.Clear()' on a null object reference'
...
End Sub