I have the following code:
TimSecondsToDateTime(TimGetSeconds(), &CurrentDateTime);
s = FldGetTextPtr(GetObjectPtr(frmContact_TxtMonthField));
if (s)
{
month = StrAToI(s);
}
else
{
month = CurrentDateTime.month;
}
where s is a CharPtr and CurrentDateTime is a DateTimeType. s will be set
correctly, but will then jump to the line of code in the else clause
immediately, not evaluating s at all. If I put code between setting s and
entering the if...then...else structure, it skips over that code and goes
directly to the else code. Please help!
Gabriel Covert
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/