Inserted text exceededs the maximum length

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
ggeerits
Posts: 10
Joined: Wed Aug 06, 2008 1:08 pm
Location: Belgium

Inserted text exceededs the maximum length

Post 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
OpenOffice 4.1.10 and LibreOffice 7.1.3.2 on Windows 10 Pro
User avatar
uros
Volunteer
Posts: 30
Joined: Sun Dec 02, 2007 10:26 pm
Location: Slovenia

Re: Inserted text exceeded the maximum lenght

Post 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
User avatar
Hagar Delest
Moderator
Posts: 32653
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Inserted text exceeded the maximum lenght

Post 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).
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
ggeerits
Posts: 10
Joined: Wed Aug 06, 2008 1:08 pm
Location: Belgium

Re: Inserted text exceededs the maximum length

Post 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
OpenOffice 4.1.10 and LibreOffice 7.1.3.2 on Windows 10 Pro
jtyman
Posts: 1
Joined: Thu Aug 28, 2008 11:16 pm

Re: Inserted text exceededs the maximum length

Post 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.
OOo 2.3.X on Ubuntu 8.x + Windows NT
Post Reply