×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    67

    Question Porting "TAgnMonthlyByDatesRpt" and "TAgnMonthlyByDayRpt"

    Hi everybody,
    I have a question regarding the TCalRRule and how to port the "TAgnMonthlyByDatesRpt" and "TAgnMonthlyByDayRpt" classes and implementation in OS 9.1

    This is what I had on OS 8 and lower:

    Code:
    case EMonthlyByDatesRepeat:
      {
    	TAgnMonthlyByDatesRpt MonthlyDatesRepeat;
    	TTime StartTime = iApptItem->GetStartTime();
    	MonthlyDatesRepeat.SetDate(StartTime.DayNoInMonth());
    	iRepeat->SetMonthlyByDates(MonthlyDatesRepeat);
      }
      break;
    case EMonthlyByDaysRepeat:
      {
    	TAgnMonthlyByDaysRpt MonthlyDaysRepeat;
    	TTime StartTime = iApptItem->GetStartTime();
    	TInt WeekNum = StartTime.DayNoInMonth()/7;
    	MonthlyDaysRepeat.SetDay (StartTime.DayNoInWeek(), 
            TAgnRpt::TWeekInMonth(WeekNum));	
            iRepeat->SetMonthlyByDays(MonthlyDaysRepeat);
      }
      break;
    This code used to set a repeating rule of an appointment for a "Month by day" and "Month by date" selection.

    How do I port this code to OS 9.1? (same goes for YearlyByDay and YearlyByDates implementations which I also don't know how to port).

    Thanks a lot for your help!

    - Roy
    Last edited by m00gl3; 2006-08-09 at 12:49.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×