https://bugs.documentfoundation.org/show_bug.cgi?id=174295
Bug ID: 174295
Summary: ScriptForge Triggers an Unexplained Error
Product: LibreOffice
Version: 24.2.7.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: trivial
Priority: medium
Component: Extensions
Assignee: [email protected]
Reporter: [email protected]
When setting an object of type “GridControl,” an unexplained error occurs.
At runtime, a dialog is accessed using the SF_Dialog and SF_Controls services.
The dialog was created in the UI.
Clicking the “Change” button executes the “DialogMain_doChange” macro. The
following then occurs:
1. First click—no reaction. The macro appears to have no effect. No console
window or MsgBox appears.
2. Second click. The macro runs. All the subroutines running within it function
properly, and the result is as expected.
Example:
Sub DialogMain_doChange
Dim oCtrl As Object
Set oCtrl = oDlgMain.Controls("GridControl1") 'Error here
oVValue.V_Name = oCtrl.Value (0)
oVValue.V_Value = oCtrl.Value (1)
Set oCtrl = nothing
StartDialogValues
End Sub
Subsequent clicks on the button work perfectly.
If the dialog is closed, an error message appears due to an SF_Exception:
“Error 91,” “Localize” = ?, object variable not defined.
--
You are receiving this mail because:
You are the assignee for the bug.