"Chris Tutty" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Leaving aside any style issues for the moment :-), can anyone
> suggest why this is happening?  The code to set the flag to true

I have overcome a similar problem by doing something like this:  IMHO it's
always better to try and have only one return statement, the bonus being it
seems to keep dead code elimination at bay...

Err    eRet;

if (TestsOK)
 {
 eRet=errNone;
 } else
 {
  eRet = gInfo.ErrorCode;
 }

return eRet;



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

Reply via email to