Description: 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."" Steps to Reproduce: 1. try to display or modify ListBox.LIstSource 2. 3. Actual Results: error message ""BASIC runtime error. Object variable not set."" Expected Results: No error Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.4.5.1 (x64) / LibreOffice Community Build ID: 9c0871452b3918c1019dde9bfac75448afc4b57f CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: fr-FR (fr_FR); UI: fr-FR Calc: threaded And version 7.5
Created attachment 185357 [details] A Base file to show the bug A checkbox activate a macro to modify ListSource. A button activate a macro to display the ListSource Property. Work on ComboBox, not on ListBox
Solved. ListSource of a combobox takes a String or an array but ListSource of a Listbox takes only an array !!!!