Larry Gilbert wrote:
yes. if form is a FormType * then you don't need to use the & in front of form when you call the function. You're passing a pointer to a form to FrmRemoveObject and that's exactly what form is. Just do
Hi all, again.
I'm running into trouble with FrmRemoveObject, and am finding a dearth of information to help me with it.
I am calling "FrmRemoveObject(&form,objIndex)" (where form is a FormType* and objIndex is a UInt16). I'm expecting to see the form pointer change. But as I step through with the debugger, I see nothing changing. In fact, I'm also getting warnings from POSE about low-memory accesses at the same time.
Am I calling it wrong?
FrmRemoveObject(form,objIndex);
Also, you may want to use a variable name such as pForm or something to remind yourself that the variable is in fact a pointer to a form rather than the form data itself.
Matt
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
