PDA

View Full Version : I get a error and found not why?



Ditte
20-Nov-2009, 11:12 AM
Hi,

there is a error in my code, but I donīt found it. Maybe I use not the right object?
I need the alldayEvent property for my further work.




Procedure OnComIsEditOperationDisabled Variant llOpParams Boolean ByRef llbDisableOperation
....

Get Create U_cSigCjComCalendarEditOperationParameters to hoParams
Set pvComObject of hoParams to llOpParams
Get ComOperation of hoParams to iOperation
Get ComEventViews of hoParams to vEventViews
Get Create U_cSigCjComCalendarViewEvents to hoEventViews
Set pvComObject of hoEventViews to vEventViews
Get ComCount of hoEventViews to iCount
Get ComViewEvent of hoEventViews (iCount-1) to vEvent

Get Create U_cSigCjComCalendarEvent to hoCalEvents
Set pvComObject of hoCalEvents to vEvent
Get ComAllDayEvent of hoCalEvents to bAllDay //I get the error 4399
Send Destroy of hoCalEvents

Send Destroy of hoEventViews
Send Destroy of hoParams

End_Procedure The error mean (Object does not support this method or property. Possibly incorrect IDispatch interface pointer attached to VDF proxy object.)

Who can say which object is not right?

Ian Smith
22-Nov-2009, 07:25 AM
Hi Dittmar

Nearly there. The object you are referencing as vEvent is a CalendarVIEWEvent not an Event.



Procedure OnComIsEditOperationDisabled Variant llOpParams Boolean ByRef llbDisableOperation
....

Get Create U_cSigCjComCalendarEditOperationParameters to hoParams
Set pvComObject of hoParams to llOpParams
Get ComOperation of hoParams to iOperation
Get ComEventViews of hoParams to vEventViews
Get Create U_cSigCjComCalendarViewEvents to hoEventViews
Set pvComObject of hoEventViews to vEventViews
Get ComCount of hoEventViews to iCount
Get ComViewEvent of hoEventViews (iCount-1) to vViewEvent //vEvent
Get Create U_cSigCjComCalendarViewEvent to hoViewEvent
Set pvComObject of hoViewEvent to vViewEvent
Get ComEvent of hoViewEvent to vEvent

Get Create U_cSigCjComCalendarEvent to hoCalEvents
Set pvComObject of hoCalEvents to vEvent
Get ComAllDayEvent of hoCalEvents to bAllDay //I get the error 4399
Send Destroy of hoCalEvents

Send Destroy of hoEventEvent
Send Destroy of hoEventViews
Send Destroy of hoParams

Ditte
23-Nov-2009, 05:33 AM
Thanks Ian,

I had must go the way to end.
Now Iīve some more understand the documentation.