Array function result not updating in sheet
Posted: Wed Dec 12, 2007 10:44 pm
I must be missing something obvious. I have defined this function:
function testthreex(a,b,c) as array
x=array(a^2,b^2,c^2)
testthreex=x()
end function
I call the function as an array function. Here is the behavior:
If I edit the function code in the basic editor, the next time it is called from the spreadsheet, it properly calculates and displays the correct output in the worksheet.
If I do not edit the function in the basic editor, but change the inputs, it does not update in the spreadsheet.
Specifically, if I edit the function in basic and call testthreex(a1;a2;a3), where a1=5, a2=3, a3=1, it displays 25 9 1 as the output in the worksheet. If I then change cell a1 to 6, it continues to display 25 9 1. I can confirm by setting a breakpoint in the basic code that a) the function is evaluated and b) it is evaluated correctly. The result is just not passed to the spreadsheet. I am running OO in Windows XP.
The other odd thing is that sometimes when I enter the function in a cell, OO parses it like " 'testthreex'*(5;3;1) ", so it does not recognize that it is a function.
A sample spreadsheet is attached. Any suggestions?
function testthreex(a,b,c) as array
x=array(a^2,b^2,c^2)
testthreex=x()
end function
I call the function as an array function. Here is the behavior:
If I edit the function code in the basic editor, the next time it is called from the spreadsheet, it properly calculates and displays the correct output in the worksheet.
If I do not edit the function in the basic editor, but change the inputs, it does not update in the spreadsheet.
Specifically, if I edit the function in basic and call testthreex(a1;a2;a3), where a1=5, a2=3, a3=1, it displays 25 9 1 as the output in the worksheet. If I then change cell a1 to 6, it continues to display 25 9 1. I can confirm by setting a breakpoint in the basic code that a) the function is evaluated and b) it is evaluated correctly. The result is just not passed to the spreadsheet. I am running OO in Windows XP.
The other odd thing is that sometimes when I enter the function in a cell, OO parses it like " 'testthreex'*(5;3;1) ", so it does not recognize that it is a function.
A sample spreadsheet is attached. Any suggestions?