Page 1 of 1

Inserted text exceededs the maximum length

PostPosted: Wed Aug 06, 2008 1:26 pm
by ggeerits
The next error happens when I copy a text from a OpenOffice Basic macro (in Calc) and paste it in the same macro.

The inserted text exceeded the maximum lenght of this text field.
The text was truncated.

OpenOffice.org 2.4.1

Is it a bug?

Thanks in advance,
Geert Geerits

Re: Inserted text exceeded the maximum lenght

PostPosted: Thu Aug 07, 2008 8:52 am
by uros
Hi Geert!

It is not a bug. There is a 64Kb limit for a module. Make another module in the same library. Use Public declaration for variables to use in both (all) modules of a library.

Uros

Re: Inserted text exceeded the maximum lenght

PostPosted: Thu Aug 07, 2008 9:48 am
by Hagar Delest
See also here (couldn't find the right keywords to find it here at first but uros wording rang a bell): Basic IDE: Copy / paste not working properly / safely.

You should report it as a bug, it doesn't seem to have been reported yet ([Tutorial] Reporting bugs or suggestions).

Re: Inserted text exceededs the maximum length

PostPosted: Thu Aug 07, 2008 1:37 pm
by ggeerits
Thanks for your answers.
The module is indeed greater then 64KB.
I can however type more lines in that module but not paste lines in it.
Geert Geerits

Re: Inserted text exceededs the maximum length

PostPosted: Thu Aug 28, 2008 11:22 pm
by jtyman
It is an ugly bug especially if you are importing older documents with extensive macros. I wonder if there is a fix already. If not use previous version of OO.