You mean you're looking for something like this, I think.
void SetFieldText(FieldPtr fld, char *txt)
{
MemHandle fldH;
char *fldP;
fldH =3D FldGetTextHandle(fld);
FldSetTextHandle(fld,NULL);
if (!fldH) {
fldH =3D MemHandleNew(StrLen(txt)+1);
}
if (fldH) {
if (MemHandleSize(fldH) <=3D StrLen(txt)) {
MemHandleResize(fldH, StrLen(txt)*2);
}
fldP =3D MemHandleLock(fldH);
if (fldP) {
StrCopy(fldP,txt);
MemHandleUnlock(fldH);
}
FldSetTextHandle(fld,fldH);
}
}
-Ken
On Mon, 2003-01-27 at 20:07, R=E9gis Daniel de Oliveira wrote:
> Hes, i was looking for this function, but i dont know how to use that. I
> think that i have to use more functions to make it work.
>=20
> I need some source example code. Does anybody have anything?
>=20
> Thanks!!!
>=20
>=20
>=20
> "R=E9gis Daniel de Oliveira" <[EMAIL PROTECTED]> escreveu na mensage=
m
> news:110725@palm-dev-forum...
> >
> > Hy!
> >
> > How can i set the text of a field at runtime?
> >
> > Thanks!
> >
> >
> >
> >
>=20
>=20
>=20
> --=20
> For information on using the Palm Developer Forums, or to unsubscribe, pl=
ease see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/