--On 31 July 2001 14:02 -0500 Richard Burmeister <[EMAIL PROTECTED]> wrote:

>> From: Richard Burmeister:
>> > Rather than mess with something that the OS isn't really
>> > designed to handle, why not just use 2 fields, one with
>> > max length 60, the other 200 (or whatever you want)?
>> > Then just show the one you want to use and hide
>> > the other, then vice-versa as needed.
>>
>> From: Igor
>> Isn't the intention of FldSetMaxChars to cope with that??? I
>> can't see why the program should be bloat-ware given huge
>> limitations of the device itself... I'd rather find a
>> solution than a work-around... :-)
>>
>
> Based on what David said, if you use FldSetMaxChars to reduce the number
> of chars allowed in a field, "you force it into a state that it couldn't
> have reached on its own."  That doesn't sound like what you should do, so
> I suggested a work around.

For those who are interested/care/want to use similar in their program 
here's a different workaround:-

cLength = FldGetTextLength(fldP);
if(cLength > nLength) {
 FldDelete(fldP, nLength, cLength);
 FldSetMaxChars(fldP, nLenght);
}

IM :-)

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