abnormal behavior pagination values datapiker ...
mmmm
B4X:
Sub dataPicker
For i = 0 To sw.Panel.NumberOfViews-1
If sw.Panel.GetView(i) Is Picker Then
sw.Panel.RemoveViewAt(i)
End If
Next
Dim lis1,lis2,lis3 As List
lis1.Initialize
lis2.Initialize
lis3.Initialize
' day
For i = 1 To 31
Dim s As String
If i < 10 Then
s = "0" & i
Else
s = i
End If
lis1.Add(s)
Next
' mount
For i = 1 To 12
Dim s As String
If i < 10 Then
s = "0" & i
Else
s = i
End If
lis2.Add(s)
Next
' year
Dim j As Int = DateTime.GetYear(DateTime.Now)-10
For i = j To j+10
Dim s As String
If i < 10 Then
s = "0" & i
Else
s = i
End If
lis3.Add(s)
Next
'
Dim mpicker As Picker
mpicker.Initialize("mpicker")
mpicker.SetColumnsWidths(Array(80,100,170))
mpicker.
mpicker.Color = Colors.White
mpicker.SetBorder(1,Colors.Black,8)
mpicker.SetItems(0,lis1)
mpicker.SetItems(1,lis2)
mpicker.SetItems(2,lis3)
sw.Panel.AddView(mpicker,100,100,330,100)
End Sub
mmmm