Hi,
I have a listbox in a form (ie : drawed on the spreadsheet, not in a dialog).
I use this macro to get the current value of the selected item.
oForm = ThisComponent.Sheets(0).getDrawPage().getForms().getByIndex(0)
oListBox = oForm.getByName("myListBox")
print oListBox.CurrentValue
Now I’d like to get the position of the item as a number. I checked on this API page and tried this :
print oListBox.GetSelectedItempos
but with no success.
Thank you for your ideas!