Android Question How do I assign cursor value to ADP?

Wien.Mart

Member
Licensed User
Longtime User
Hi All,
How do I assign a date to ADP from a cursor? The list below works when assigning to the following types:
Textbox
lname.Text = qcur.GetString("lname")
Spinner
spBgy.Add(qcur.GetString("bgy"))
radio buttons:
If qcur.GetString("sex")= "f" Then
rbFemale.Checked = True
else if qcur.GetString("sex")= "m" Then
rbMale.Checked = True
End If

I can't seem to get the correct syntax for ADP. Thanks in advance.
 

Mahares

Expert
Licensed User
Longtime User
Are you asking for this:
B4X:
Dim MyTicks as long
     MyTicks = DateTime.DateParse(qCur.GetString("Date_Born")) 
     adp.SetDate(Myticks,True)
     adp.show
 
Upvote 0

Wien.Mart

Member
Licensed User
Longtime User
Thanks Mahares, I'm still encountering some errors. I'll do more testing, maybe I'm just doing something wrong. :confused:
 
Upvote 0
Top