I keep getting a Null Pointer Exception when attempting to use AnotherDatePicker in a TabPane.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Public Sub Show
If frm.IsInitialized = False Then
frm.Initialize("Events", 800, 600)
frm.RootPane.LoadLayout("Events") 'Load the layout file
End If
frm.Show
findEvents(cbShow.Checked)
tpNew = tabEventDtls.LoadLayout("tabNew", "New Event")
tpDance = tabEventDtls.LoadLayout("tabDance", "Dance Event")
tpCruise = tabEventDtls.LoadLayout("tabCruise", "Cruise")
tpTrain = tabEventDtls.LoadLayout("tabTrain", "Train")
tpOther = tabEventDtls.LoadLayout("tabOther", "Other")
End Sub
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
mBase = Base
Dim mlbl As B4XView = Lbl
#if B4J
Dim form As Form = Props.Get("Form")
MainPanel = form.RootPane
Dim df As TextField
df.Initialize("DateField")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The error says it's here when it tries to assign MainPanel. In debug, Props has data, but form shows up as null after assignment, so somethings not right.
DatePicker works fine, but can't get AnotherDatePicker to work.
Any ideas?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Public Sub Show
If frm.IsInitialized = False Then
frm.Initialize("Events", 800, 600)
frm.RootPane.LoadLayout("Events") 'Load the layout file
End If
frm.Show
findEvents(cbShow.Checked)
tpNew = tabEventDtls.LoadLayout("tabNew", "New Event")
tpDance = tabEventDtls.LoadLayout("tabDance", "Dance Event")
tpCruise = tabEventDtls.LoadLayout("tabCruise", "Cruise")
tpTrain = tabEventDtls.LoadLayout("tabTrain", "Train")
tpOther = tabEventDtls.LoadLayout("tabOther", "Other")
End Sub
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
mBase = Base
Dim mlbl As B4XView = Lbl
#if B4J
Dim form As Form = Props.Get("Form")
MainPanel = form.RootPane
Dim df As TextField
df.Initialize("DateField")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The error says it's here when it tries to assign MainPanel. In debug, Props has data, but form shows up as null after assignment, so somethings not right.
DatePicker works fine, but can't get AnotherDatePicker to work.
Any ideas?