hello, we have a problem.
we are working with gupta.
we want to make a calender but we have problems with the multiple resources.
the code for one resource is working:
Call CalendarControl.PropGetDataProvider( CalenderDataProvider ) Call CalendarControl.PropGetMultipleResources( ICalendarResources )
Call ICalendarResources.PropGetItem( 0, ICalendarResource ) Call ICalendarResource.PropGetScheduleIDs( CalendarScheduleIDs ) Call CalendarScheduleIDs.Add( 1 ) Call ICalendarResource.PropSetName( 'A') Call ICalendarResources.Add( ICalendarResource )
Call CalendarControl.SetMultipleResources( ICalendarResources ) Call CalendarControl.RedrawControl( ) Call CalendarControl.Populate( )
but, when we want to add a second or more, we only see the last resource, for example:
Call CalendarControl.PropGetDataProvider( CalenderDataProvider ) Call CalendarControl.PropGetMultipleResources( ICalendarResources )
Call ICalendarResources.PropGetItem( 0, ICalendarResource ) Call ICalendarResource.PropGetScheduleIDs( CalendarScheduleIDs ) Call CalendarScheduleIDs.Add( 1 ) Call ICalendarResource.PropSetName( 'A') Call ICalendarResources.Add( ICalendarResource )
Call ICalendarResources.PropGetItem( 1, ICalendarResource ) Call ICalendarResource.PropGetScheduleIDs( CalendarScheduleIDs ) Call CalendarScheduleIDs.Add( 2) Call ICalendarResource.PropSetName( 'B') Call ICalendarResources.Add( ICalendarResource )
Call CalendarControl.SetMultipleResources( ICalendarResources ) Call CalendarControl.RedrawControl( ) Call CalendarControl.Populate( )
we only see 'B'.
can you help us.
thanks
|