From: "Patrick Ouellet" <[EMAIL PROTECTED]>
Subject: Re: Follow of Invalid Handle
> how do I do this...
> there is no max lenght property for a Label...
>
> Dave Lippincott wrote:
>
> > make sure you set the label up in constructor with max # of characters
you
> > will ever attempt to change it to within you app. Or change it to a
read
> > only field
I believe that Dave means that you should assign the maximum number of
characters to the label when you create it in Constructor. For example, if
the original label is "abc" and you later change it to "abcde" you will
over-write some other part of the form. However, if the original label is
"abc " ('a', 'b', 'c', ' ', ' ', \0) or " abc" (' ', ' ', 'a', 'b', 'c',
\0) then it won't cause any problem if you later change it to "abcde".
Most of the time, however, if you intend to change the value of a text area
at runtime, a non-editable text field is a better choice than a label.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/