I don't think I can do that...
The FldDelete needs s pointer to a FieldType structure...not the actual
text.
The API documentation specifically says this.
Is there something I'm missing here?
Philip Sheard wrote:
>
> > FieldPtr debugfldP;
> > CharPtr debug_text;
> >
> > //The field is a non-editable field
> > //This Causes an error "MemoryMgr.c, Line: 4340, NULL handle" for some
> > reason!!!
> >
> > debugfldP = GetObjectPtr(MainDebugFieldField);
> > debug_text = FldGetTextPtr(debugfldP);
> > if (debug_text != NULL){
> > FldDelete(debugfldP, 0, StrLen(debug_text) + 1);
> > }
> >
> >
> >
> >
> > I checked, using the debugger, and...
> > - debugfldP is not NULL
> > - the strlen returns the exact length of the NULL terminated string
> >
> > I have another FldDelete for an editable field right before this and it
> > works...
> >
> > What can be wrong here?
>
> try using debug_text (instead of debugfldP) for the first parameter.
--
" This statement is false "
I
n
t e r
a James Tu
c T n
t i v e o
l e c i
o c a t
g r a m i
o m u n
r
P
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/