you're right...but how to modify this function?

Char* GetFieldText(UInt16 objIndex)
{
        FormType *form = FrmGetActiveForm();
        FieldType *field;
        MemHandle h;
        Char *s = NULL;

        field = FrmGetObjectPtr(form, FrmGetObjectIndex(form, objIndex));
        if (FldGetTextLength(field) > 0)
        {
                FldCompactText(field);
                h = FldGetTextHandle(field);
                if (h)
                {
                        s = MemHandleLock((void *)h);
                        MemHandleUnlock((void *)h);
                }
        }
        return s;
}

I'm thinking of passing the char pointer of the object std to the function...like
Char* GetFieldText(UInt16 objIndex, Char *text)
don't know how to re-write it.


_________________________________________________________________
Linguaphone : Learning English? Get Japanese lessons for FREE http://go.msnserver.com/HK/30476.asp



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

Reply via email to