--- Alexandre Kazantsev <[EMAIL PROTECTED]> wrote: > I've just started to test my application with debug ROMs (OS 4.0, > 4.1) and getting "Not a label object" fatal error. The following > function call fails to execute: > FrmCopyLabel(frmP, SelectorTriggerID, "str"). > It executed fine with non-debug ROMs. > > What function should I use to fill a selector trigger label > programmatically?
Just because FrmCopyLabel() "worked" doesn't mean it's what you should use. FrmCopyLabel() is for copying a string to a **Label object**. Use CtlSetLabel() to set the label of a **Control object**. (The non-debug ROMs let you get away with lots of stuff that they probably shouldn't. That's why you should always test on debug ROMs at some point.) __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
