I have a field that displays a number I'm trying to get it to display out of
this Alert(used a example from The Palm OS Programming Bible).
The Alert displays however the content does not change.
any ideas?
static void AnswerAlert(UInt16 alertID)
{
    FormType *form = FrmGetActiveForm();
    FieldType *field;
    MemHandle h;

    field = FrmGetObjectPtr(form, FrmGetObjectIndex(form, txtTotalFeet));
    if (FldGetTextLength(field) > 0){
        FldCompactText(field);
        h = FldGetTextHandle(field);
        if (h){
            Char *s;
            s = MemHandleLock((void *)h);
            FrmCustomAlert(alertID, s, "", "");
            MemHandleUnlock((void *)h);
        }
    }
}



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

Reply via email to