Can someone explain this?

I am trying to access an Address book database record from within my
application.
To find the record I call:
     SysAppLaunch(CardNo, dbID, 0, sysAppLaunchCmdLookup, (Ptr)&params,
&result);

AppLaunchCmd.h says the "params.uiqueID" field returns the unique ID of the
found record or 0 if none was found.
It seems to work, (I get a unique ID returned, at least I get some sort of
number).  I then call:
          DmFindRecordByID(AddrDB, params.uniqueID, &recordNum);
but I get an error saying the unique ID was not found.

Is there a way I can find out if sysAppLaunchCmdLookup is returning a valid
uniqueID?
Is there another (better) way to access the address book records.  I need the
entire record
so I can't use PhoneNumberLookup.

Thanks,
Ronnen


Reply via email to