Hello,
Can you someone provide an example of how to create an appointment in outlook.
Thank you,
FUNCTION AddOLappointment( cDate, cTime, nLenInMin, cSubject, cNotiz )
LOCAL hOutlook
LOCAL hApptItem
LOCAL dDate
LOCAL lSave := .F.
TRY
hOutlook := CreateOLEObject( "Outlook.Application" )
hAppItem := OLEInvoke( hOutlook, "CreateItem", 1 )
SET CENTURY ON
dDate := CToD( cDate )
OLESetProperty( hAppItem, "Start", cDate + " " + cTime )
OLESetProperty( hAppItem, "StartTime", cTime + ":00" )
SET CENTURY ON
SET Date TO GERMAN
OLESetProperty( hAppItem, "Duration", nLenInMin * 60 )
OLESetProperty( hAppItem, "Subject", cSubject )
OLESetProperty( hAppItem, "Body", cNotiz )
OLESetProperty( hAppItem, "Mileage", 225 )
OLEInvoke( hAppItem, "Save" )
hAppItem := NIL
hOutlook := NIL
lSave := .t.
CATCH
lSave := .f.
END
RETURN (lSave)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Antonio Linares, Google [Bot] and 76 guests