_OL_ItemCreate. Termin, ganztägiges Ereignis

  • Moin,

    water , wie setzte ich mit _OL_ItemCreate, im Kalender den Button "ganztägiges Ereignis"?

    Spoiler anzeigen

    #include <OutlookEX.au3>

    Global $oItem

    Global $oOL = _OL_Open()

    If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended)

    $oItem = _OL_ItemCreate($oOL, $olAppointmentItem, "", "", "Subject=TestSubject", "Start=2021/07/19 00:00:00", "End=2021/07/19 00:00:00", _

    "Location=Building A, Room 10", "RequiredAttendees=" & $oOL.GetNameSpace("MAPI" ).CurrentUser.Name)

    If @error <> 0 Then Exit MsgBox(16, "Error", "Error creating an appointment. @error = " & @error & ", @extended = " & @extended)

    _OL_Close($oOL)

    Gruß

  • water, sorry, ich habe es gefunden!

    Es ist "Alldayevent=True".

    Spoiler anzeigen

    #include <OutlookEX.au3>

    Global $oItem

    Global $oOL = _OL_Open()

    If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF", "Error creating a connection to Outlook. @error = " & @error & ", @extended = " & @extended)

    $oItem = _OL_ItemCreate($oOL, $olAppointmentItem, "", "", "Subject=TestSubject", "Start=2021/07/19 00:01:00", "End=2021/07/19 00:00:00","Alldayevent=True", _

    "Location=Building A, Room 10", "RequiredAttendees=" & $oOL.GetNameSpace("MAPI" ).CurrentUser.Name)

    If @error <> 0 Then Exit MsgBox(16, "Error", "Error creating an appointment. @error = " & @error & ", @extended = " & @extended)

    _OL_Close($oOL)

    Gruß