I have a similar problem with dynamically created controls. Upon redrawing a form with maybe 10 dynamically created controls, one of the control labels was getting trashed. Apparently when the OS shuffles the form data around (say, one of the controls is deleted), it can fail to copy the label data to its new location. Everything is properly allocated, except the label is trash.
My solution was to run through the database, comparing the intended label to the current control label. When they don't compare, I reset the label to the one in the database. If everything works properly, then there is no fixup. Ugly, but not doing it is even more so. As I recall, form titles have a fixed maximum length. Whatever length you use when the title is first declared becomes the maximum length that will work. You can set any length title you want, but if it exceeds the available space, it just trashes the next control in the form. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
