https://bugs.documentfoundation.org/show_bug.cgi?id=174295
Jean-Pierre Ledure <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|[email protected] |[email protected] |desktop.org | Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTABUG --- Comment #13 from Jean-Pierre Ledure <[email protected]> --- I stick to your first scenario: - Run Main() in module "ui" - Click "Andern" button - Close the dialog This gives an error "Object variable not set" on line 116. 1) I added next line before the last line of the module: oGrid.ListIndex = 0 This selects the only empty row in the table and avoids further troubles. 2) I modified lines 115-117 to Dim val: val = oCtrl.Value oVValue.V_Name = val(0) oVValue.V_Value = val(2) Reason: the (0) was interpreted by Basic IDE as an argument of the Value property, not as an index in the array output by the property. However this gives still the same error, but elsewhere. 3) Line 119 StartDialogValues(False) runs Sub DialogValues_Init() that references controls "txtArray" and "lstArray". I don't find those controls in the DlgValues dialog. I suspect that the "elsewhere" in 2) is to find here. 4) Indeed, statement If oDlgMain.OKBUTTON Then ... is always run: OKBUTTON is a constant = 1 => True. It is normally compared with the value returned by a dialog.Execute(). 5) In Main() the same dialog (DlgValues) is opened twice as two separate ScriptForge services. IMO a strange approach ? I now stop debugging on your behalf a code that still needs polish. Until opposite evidence, I now change the status of this bug report to NOTABUG. Thanks for reporting the issue. -- You are receiving this mail because: You are the assignee for the bug.
