Inserted text exceededs the maximum length

Creating a macro - Writing a Script - Using the API

Inserted text exceededs the maximum length

Postby ggeerits » Wed Aug 06, 2008 1:26 pm

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
OOo 2.4.X on Ms Windows XP
ggeerits
 
Posts: 2
Joined: Wed Aug 06, 2008 1:08 pm
Location: Belgium

Re: Inserted text exceeded the maximum lenght

Postby uros » Thu Aug 07, 2008 8:52 am

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
uros
Volunteer
 
Posts: 30
Joined: Sun Dec 02, 2007 10:26 pm
Location: Slovenia

Re: Inserted text exceeded the maximum lenght

Postby Hagar Delest » Thu Aug 07, 2008 9:48 am

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).
AOO 4.1.6 on Xubuntu 19.04 and 4.1.5 on Windows 7 (with winPenPack port).
User avatar
Hagar Delest
Moderator
 
Posts: 28561
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Inserted text exceededs the maximum length

Postby ggeerits » Thu Aug 07, 2008 1:37 pm

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
OOo 2.4.X on Ms Windows XP
ggeerits
 
Posts: 2
Joined: Wed Aug 06, 2008 1:08 pm
Location: Belgium

Re: Inserted text exceededs the maximum length

Postby jtyman » Thu Aug 28, 2008 11:22 pm

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
jtyman
 
Posts: 1
Joined: Thu Aug 28, 2008 11:16 pm


Return to Macros and UNO API

Who is online

Users browsing this forum: Lupp and 3 guests