>Apparently no one understood what I said.
>
>I have 1 Form, and I want to update the form with different 
>sets of data
>that are held in a struct.
>
>So, it is 1 form which displays editable data of one element in the
>structured array.  If one cycles through the recrords the SAME 
>form gets
>updated with the new data from the next element.

What you want to do is write a frmUpdateEvent handler, then first
FrmEraseForm, then FrmDeleteForm, then FrmGotoForm.  That way, it's
nice and clean each time you update your form with different data.
Remember to save your FormID before you do this operation, that 
way you can pass it to those three functions.

You'd call FrmUpdateForm to send the frmUpdateEvent into the queue,
and it would be caught by your update handler.  You'd probably be
displaying this data in a text field, so you could also just update
the text field, by deleting/erasing the field, then reinstalling it 
to your form.  There are routines in the Companion that allow you to
write data to a field, and you'd be able to catch any events that 
would encompass field activity (aka fldChangedEvent, fldEnterEvent,
etc.)

Sounds like you're writing a basic address book...just a guess, since
I've done this too (it's what I always write when I'm learning a new
language).

>I never, ever intended to make 40 forms as that is just proposterous.

I think the way it was worded was what confused people.

-Rus

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

Reply via email to