Ronnen,

>I am trying to have my app lookup fields in the Address Book
>using the system function, "PhoneNumberLookup".
>
>The palm documentation mentions looking at the example program
>"phonelookup.c".
>
>I can't find this example program anywhere.  I am using CodeWarrier 5.
>
>Does anyone know where I can get a copy of this source file?
>Can someone email or post it?

I believe the PhoneLookup.c file referred to is part of the PalmOS source.
As such, I don't think people can legally email you a copy of it. You'd
want to contact Palm developer support at their web site re getting a
license to the OS code.

Having said that, it's easy to use this built-in support. Just pass a field
ptr to the routine PhoneNumberLookup, as documented in the public
PhoneLookup.h header file:

extern void PhoneNumberLookup (const FieldPtr fld);

If there's no active field, you can ignore the request, beep, or put up an
alert (my favorite) that tells the user they have to have an active field.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)


Reply via email to