Subject RE: [IBO] Re: IB_SQL Script limit 64K
Author Norman Dunbar
Hi Marco,

I just tried to paste that 341 Kb RTF file into a TRichEdit in the IDE, it
does indeed truncate and I get a 'Rich Edite line insertion' error when I
click OK.
Looks like a Windows limit to me - seeing as TRichEdit is just a wrapper
around the Rich Edit common control.

I've no idea why it allows large files to be read in at runtime but pasting
fails - apart from a little mention in the help, that pasting rtf code into
a TRichEdit will NOT format correctly, it has to be streamed in from a file
or memeory stream. I wonder if that is part of the problem ?

At runtime, pasting RTF text into the TRichEdit also gets truncated - plus
all the formatting is lost, it merely shows the rtf 'source code' instead of
properly formatted output - so the above restriction on pasting is certainly
true.

Cheers,
Norman.

-------------------------------------
Norman Dunbar
Database/Unix administrator
Lynx Financial Systems Ltd.
mailto:Norman.Dunbar@...
Tel: 0113 289 6265
Fax: 0113 289 3146
URL: http://www.Lynx-FS.com
-------------------------------------


-----Original Message-----
From: Marco Menardi <mmenaz@...> [mailto:mmenaz@...]
Sent: Wednesday, January 22, 2003 12:37 PM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: IB_SQL Script limit 64K


If you have IBO source you can check/test it by yourself, in my source
I've seen that MaxLength = 0, but when I paste from the clipboard into
the TRichEdit the script is truncated, and I can't enter (type) more
test into it. Could you please test and let me know?
Using TMemo works very well.
regards
Marco Menardi

This email is intended only for the use of the addressees named above and
may be confidential or legally privileged. If you are not an addressee you
must not read it and must not use any information contained in it, nor copy
it, nor inform any person other than Lynx Financial Systems or the
addressees of its existence or contents. If you have received this email
and are not a named addressee, please delete it and notify the Lynx
Financial Systems IT Department on 0113 2892990.