Hi Yuen,
please choose a more appealing title next time. This is actually a usenet
group(although most if us treat it as a mailing list), and thus, "offending
comments" are ignored. In addition, this list is not very buys on
Weekends...
I have never ever used this structure, but believe that the DayOfMonthType
allows for the definition of the "state of a day", eg firstr Monday, first
Tuesday,... . Just look it up in your SDK headers!
When it comes to repeating on both Tuesday and Thursday, I think that you
must OR the values together. 
Hope that I could help
Tam Hanna
http://tamspalm.blogspot.com

this is found in DateDB.h from the examples that came with codewarrior 9.3

could any1 explain to me what is the purpose of repeatOn and
repeatStartOfWeek. from the comments there is a byte and bit and i am
confused about it. it is declared that both of the variable takes in UInt8
but how come it takes in bit or byte?
for the weekly repeat, how do i choose to repeat on every tuesday and
thrusday only? what info do i need to pass to repeatOn and repeatStartOfWeek
variable?
for the monthly repeat by day, i must pass in a DayOfMonthType, which
variable do i pass it to?

please help!!!


// This structure contains information about repeat appointments.  The 
// repeatOn member is only used by weelky and monthly-by-day repeating
// appointments.  For weekly the byte is a bit field that contains the 
// days of the week the appointments occurs on (bit: 0-sun, 1-mon, 
// 2-tue, etc.).  For monthly-by-day the byte contains the day the 
// appointments occurs, (ex: the 3rd friday), the byte is of type 
// DayOfMonthType.
//
typedef struct {
        RepeatType              repeatType;                     // daily,
weekly, monthlyByDay, etc.
        UInt8                           reserved1;
        DateType                        repeatEndDate;          // minus one
if forever
        UInt8   repeatFrequency;        // i.e. every 2 days if repeatType
daily
        UInt8   repeatOn;                       // monthlyByDay and
repeatWeekly only       
        UInt8  repeatStartOfWeek;// repeatWeekly only
        UInt8                           reserved2;
} RepeatInfoType;


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to