[Solved] Basic Programming Custom Function Using Array

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
alammohds
Posts: 2
Joined: Sat Jul 15, 2023 9:01 pm

[Solved] Basic Programming Custom Function Using Array

Post by alammohds »

I want to pass a Range from the Sheet to the Function defined using the Basic programmer. Say polynomial coefficients for x and y variables of power 4. so 2x5 Array.
Then I want to reference individual elements from the Array into the function procedure to use for calculations. e.g different coefficients of
the polynomial.

I would appreciate an example please
Last edited by robleyd on Sat Jul 22, 2023 11:04 am, edited 1 time in total.
Reason: Tagged [Solved]. Add green tick
Ala Mustafa Mohamed
Open Office 4.18
Windows 11 Home
User avatar
Zizi64
Volunteer
Posts: 11497
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Basic Programming Custom Function Using Array

Post by Zizi64 »

https://wiki.openoffice.org/wiki/Docume ... to_a_macro

Modified sample:
Passed two dimensional Array.ods
(9.92 KiB) Downloaded 97 times
Note: Only the Cell values will be passed to the user defined Basic function, but will not be passed the other parameters of the Cell range (like the coordinates of the passed cells)
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
alammohds
Posts: 2
Joined: Sat Jul 15, 2023 9:01 pm

Re: Basic Programming Custom Function Using Array

Post by alammohds »

Thanks. Much appreciated. I was able to solve my problem
Ala Mustafa Mohamed
Open Office 4.18
Windows 11 Home
Post Reply