(UInt16)&startTime == noTime compiles, but the comparison doesn't work...

I do not get into the if statement....

/morten

"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > The docs say that if the user selects "No Time", then both startTime and
> > EndTime are set to the constant noTime (-1)
> >
> > But how do I check for this?
> >
> > if (&startTime == noTime)
> > doesn't go... The startTime is of type TimeType and the consdtant noTime
is
> > an int?
> >
> > Please kan someone tell me how to compare these?
>
> // This is the time format.  Times are treated as words so don't
> // change the order of the members in this structure.
> typedef struct {
>         UInt8        hours;
>         UInt8        minutes;
> } TimeType;
>
> so, maybe:
>
>   (UInt16)startTime == noTime
>
> possibly?
>
> ---
> Aaron Ardiri
> PalmOS Certified Developer
> [EMAIL PROTECTED]
> http://www.mobilewizardry.com/members/aaron_ardiri.php
>
>



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

Reply via email to