If you follow these steps, you never have to worry about freeing field
memory.

1) Allocate a HANDLE for your string.
2) Lock the handle
3) Copy your data into it.
4) Unlock the handle.
5) Get the current field text handle.
6) Set the field handle to your newly created handle.
7) Free the handle you got from step 5) above.

Done. You now need to call FldDrawField to redraw the field, but after
that, the field takes care of it's own memory freeing.

Alan

"Mike" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I'm using the code found on Palm's Programming Recipes page:
>
http://www.palmos.com/dev/support/docs/recipes/fields_with_static_text.html
>
> My form has 2 sets of 6 fields, one set are text descriptions and the
other
> set are their associated values.  Here's how I initialize the fields,
again
> using the code from the Web site (s_TopSetpoint and s_BottomSetpoint are
> indexes into arrays of data for text display):
>



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

Reply via email to