Apache OpenOffice (AOO) Bugzilla – Issue 128558
No access to the ListSource property of a ListBox
Last modified: 2023-02-15 02:04:54 UTC
Created attachment 87170 [details] A Base file to show the bug I want to modify the SQL query of a ListBox (to display the list in alphabetical order). But the ListSource property is not accessible, neither read nor write. The message is: ""BASIC runtime error. Object variable not set."" It works on a ComboBox.
You are in wrong place here. This is a bug tracking system and not a help desk. If you have some difficulties to use OpenOffice, the best way is to go on our mailing list or community forum: https://www.openoffice.org/support/ You should read the API documentation or Devguide. ListSource property for a Listbox control wait an array.
You didn't understand my message? I have no difficulty with OpenOffice, and I'm not new to macros and the API. The process I describe worked with Ooo 4.1.12, but no longer works with version 4.1.13. At least take the time to test my example instead of making childish reflections...
You weren't kind enough to mention in your report that the "process worked with Ooo 4.1.12". With my installations of AOO 4.1.12 I get the runtime error ("Object variable not set"). The suggestion by oooforum's (fr) solves the problem (checkbox & command button). BTW: your file "ListSource-EN.odb" appears be created by LibreOffice. I assume the same file is attached to the report filed with LibreOffice Bugzilla i.e. tdf#153599 ("No access to the ListSource property of a ListBox"). https://bugs.documentfoundation.org/show_bug.cgi?id=153599
So this is not a regression, not a bug in AOO, but a mistake in the BASIC macro. Closing this issue now...