By definition a UInt16 can only have values 0 to 65535.  Did you mean to use a signed int (e.g. Int16).

On 22/10/06, Mike McCollister < [EMAIL PROTECTED]> wrote:
I have a function that returns the ID of the focused item on a form.  This
function works on most devices but some of the newer ones, such as the T|X and
Treo 6xx devices it does not work.

Here is the function:

static UInt16 GetFocusID(void)
{
   UInt16 wFocused = FrmGetFocus(FrmGetActiveForm());

   // on a T|X at this point wFocused is -1

   if(wFocused != noFocus)
      wFocused = FrmGetObjectId(FrmGetActiveForm(), wFocused);

   return wFocused;
}

Any idea what the problem is?

Thanks,

Mike

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

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

Reply via email to