De-select ListBox Item

I need to to ‘re-use’ a listbox, and need a macro to remove the selection previously selected in the listbox

This does not seem to work, though it looks logical.

d1.getControl("ListBox1").selectItemPos(-1,True)

Does LO have this function?

It is looking as if I need to record the selected position on first use '‘oSel’) and then de-select it withd1.getControl("ListBox1").selectItemPos(oSel,False) which does seem to work. I was hoping LO might have the ‘-1’ option as VBA does.