How to programmatically create a task with alarm?

I just tried the following line of code…

Dim notesdb As Object

Dim notessession As Object

Dim doc As Object

notessession = CreateObject(“Notes.Notessession”)

notesdb = notessession.GetDatabase(“”, “”)

Call notesdb.OPENMAIL()

doc = notesDB.CreateDocument

Call doc.AppendItemValue(“Form”, “Task”)

Call doc.AppendItemValue(“TaskType”, “1”)

Call doc.AppendItemValue(“Subject”, “Testaufgabe”)

Call doc.AppendItemValue(“Body”, “Test, Test, Test!”)

Call doc.AppendItemValue(“StartDate”, “12.06.2007”)

I can’t find the correct propertyname for EndDate!???

'Call doc.AppendItemValue(“EndDate”, “12.06.2007”)

Call doc.AppendItemValue(“Alarms”, “1”)

Call doc.AppendItemValue(“Categories”, “Planung”)

Call doc.Save(True, False)

What is the correct propertyname for enddate?

Is this a correct way to implement programmatically creating tasks in Lotus Notes?

Thanks!

Kind Regards,

Daniel

Subject: How to programmatically create a task with alarm?

Hi,

C&S Schema

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/6cd8a25c5976f720852572b40059b997?OpenDocument

JYR