on 8/9/00 6:19 AM, Zach Austin at [EMAIL PROTECTED] wrote:

> Once I  use this function to assign a new label, I cannot use it again
> without getting an error.  I get "object not in form" or something to that
> effect.  Is there something I am doing wrong?  The ID number for the object
> doesn't change somehow, does it? Thanks for any help.

1. I'm not a fan of FrmCopyLabel - the word 'copy' in the name implies that
the function will copy the string you pass to some buffer. The size of that
buffer is determined by the size of string in the object's resource
definition. Therefore, if you created the label in Constructor (or Rez or
PilRC) with an initial value of "Palm" and then at runtime tried to call
FrmCopyLabel(pForm, "Palm, Inc."), the call would fail because the new
string exceeds the length of the buffer.

2. The "object not found in form" error might be unrelated - check the
debugger and make sure you are passing an object ID rather than an object
index (or vice versa) to one of the FrmXXXXXX calls.

----------------------------------------------
JB Parrett         
Palm, Inc.         

When everyone actually _is_ out to get you,
paranoia is just good thinking. - W. Allen
----------------------------------------------


-- 
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