setField() knows nothing about formatting. If you want formating you
should provide it and know when to provide it. Some examples with MAXLEN
3:
setField(name, "abcde") shows "abc" and stores "abc"
setField(name, "12345", "$skeifeif") shows "$skeifeif" and stores "123"
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Ronny
> Sent: Tuesday, November 28, 2006 12:59 PM
> To: [email protected]
> Subject: Re: [iText-questions] Problems with MAXLEN
>
> Thank you Paulo and Bruno!
>
> Paulo, I read about that fix you mentioned here and I agree
> with you. IMHO here
> we have a more complex problem we expect.
>
> In your example and the thread spoken here about before the
> fix was done, always
> a preformatted value was given into the setField() method. In
> my case none of
> the values is preformatted.
>
> Shouldn't here be distinguished between the unformatted and
> the formatted value?
>
> What I mean is, if I give an unformatted value into the
> method it should be
> truncated if it's to long before formatting and inserting. In
> the other case - a
> preformatted value - the format should be removed first and
> then processed in
> the same way as the unformatted.
>
> Currently I can help we in a way similar to that, Bruno suggested.
>
> Thanks in advance,
> Ronny
>
>
>
>
> --------------------------------------------------------------
> -----------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
> chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge
> &CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/