Thanks. but can you please help. I have the following
code. I know how to get the data now. but I have to
find a way to total it
FormPtr form = FrmGetActiveForm();
FieldPtr field;
MemHandle h;
CharPtr s;
field = (FieldPtr)FrmGetObjectPtr(form,
FrmGetObjectIndex(form,MainField1Field));
h = FldGetTextHandle(field);
if (h)
{
s = MemHandleLock(h);
FldSetTextHandle(field, NULL);
FldDrawField(field);
field = (FieldPtr)FrmGetObjectPtr(form,
FrmGetObjectIndex(form,MainTotalField));
FldSetTextHandle(field, h);
FldDrawField(field);
--- Richard Burmeister <[EMAIL PROTECTED]> wrote:
> > From: Johnathan Smith
> >
> > Anyway to get the size of the data in the field??
> >
>
> Yes.
>
> 1. You knew the maximum possible size of the field
> when you created it.
> 2. Once you get the field text with FldGetTextPtr(),
> you can use StrLen().
> 3. You could count characters as they are entered in
> the field.
> 4. etc.
>
>
> --
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/