How do you get a value from a listbox?

I have created two forms. Values can be entered in the first form. In the second form, the values that belong to this are displayed in a ListBox. I want to use a value that is displayed in the ListBox. How can I call this value?

SolidworksApi macros