The code below works perfectly except that it doesn't return a return string 
and it automatically pastes the return to the field.  I wan't to be able to get 
the return string and update the field on my own.

It looks like the only way to do this is send a dummy fld and after the phone 
lookup, get its value and go from there.

Is this the only way?  Does anyone know how to get the return string to return 
a valid handle to the email address, etc.?

        fieldP = GetObjectPtr(WriteToLookupField);
        FldSetTextHandle(fieldP,NULL);
        lookupInfo.title = "Email Address Lookup";
        lookupInfo.pasteButtonText = "Add";
        //lookupInfo.lookupString = NULL;
        lookupInfo.field1 = addrLookupSortField;//addrLookupName;
        lookupInfo.field2 = addrLookupEmail;
        lookupInfo.field2Optional = false;
        lookupInfo.userShouldInteract = true;
        lookupInfo.formatStringP = "^email";
        lookupInfo.resultStringH = resultHandle;
        PhoneNumberLookupCustom(fieldP,&lookupInfo,false);
        if (lookupInfo.resultStringH)
                {resultStr = MemHandleLock(lookupInfo.resultStringH);}
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to