iOS Question iEventKit Help

llama

Member
Licensed User
Longtime User
Hi Erel , and people wonder if you could help me, I am using the iEventKit Library however using a Picker to parse in the Date and time to what I assume will work with the Reminder Object, .. see below

B4X:
Dim r As Reminder = store.CreateReminder
    r.Title = ModalTxtFld1.Text
    r.Completed = False
    r.SetDueDate(DateTime.Date(DatePicker1.Ticks) & DateTime.Time(DatePicker1.Ticks),False)

It says it expects a long date, however its not reading in the Picker selection, I release every time the picker changes it changes on the
DatePicker1_ValueChanged
however I have the above code in a function that is on a set button as follows.
B4X:
Sub BtnModal1_Click
    Dim r As Reminder = store.CreateReminder
    r.Title = ModalTxtFld1.Text
    r.Completed = False
    r.SetDueDate(DateTime.Date(DatePicker1.Ticks) & DateTime.Time(DatePicker1.Ticks),False)
    store.SaveReminder(r)
    modalAddreminder.Visible = False
    btnList_Click
   
End Sub



any help thank you very much
 

llama

Member
Licensed User
Longtime User
Another question - thanks in advance
-> can we actually delete reminders, or does that have to be done in the reminders app? Do we have access to the reminder we created so we can delete it..
 
Upvote 0
Top