![]() |
problems with multiple resources |
Post Reply ![]() |
Author | |
mario.painsi ![]() Newbie ![]() Joined: 20 November 2006 Location: Austria Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 20 November 2006 at 4:48am |
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 |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hi, Those objects are passed by reference. You have to create a separate object for each resource...
-- WBR, Serge |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |