At 2:09 PM -0700 7/18/02, Brett A. Hoover wrote: >FrmGetGadgetData(form, gadgetIndex); > >actually returns a pointer to the data and not a handle. I had to >modify from the example in the book and everything worked fine. Use >a data pointer. > >UInt16 *data = FrmGetGadgetData( frmP, gadgetIndex ) ;
FrmGetGadgetData returns whatever you stored in the "data" field with FrmSetGadgetData. If you stored a pointer to some data, then that's what it returns. If you stored a handle to some data, then that's what it returns. If you stored an integer in there, then that's what it returns. quennie's problem is merely that some other part of his program deleted the handle with a call to MemHandleFree. -- Keith -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
