https://bugs.documentfoundation.org/show_bug.cgi?id=174295

--- Comment #12 from Andreas Gronemeyer -getobject.de- <[email protected]> 
---
I'm starting to go crazy. The sub “DialogMain_doSave” has almost the exact same
structure as “DialogMain_doChange.”

I copy the code and run it. It works as expected. I undo everything and define
the oCtrl element as a global variable. Same problem.
I write a test routine called Test_GridArray, read the data, and display
Value(0) and Value(2) in a MsgBox. The MsgBox shows me all the values. The
array can’t be empty because oCtrl.listindex ≠ -1. When I look in the Object
Inspector, everything is displayed as it should be.

Now I change the code in DialogMain_doChange and write just a single line:
Test_GridArray.

The same problem occurs again. The error is triggered, and the sub isn’t
executed. This is where I have to give up. In this case, I’ll move away from
ScriptForge and access the UNO components directly.

And I noticed something else. The line 
“  If oDlgMain.OKBUTTON Then DialogValues_doSave” is executed even though I
click Cancel.

Thank you for your efforts. It’s a shame we couldn’t solve the problem
together.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to