Check ListBox is Selected

Creating and using forms
Post Reply
Tiago
Posts: 2
Joined: Sun Dec 17, 2017 4:57 pm
Location: Brazil

Check ListBox is Selected

Post by Tiago »

Hello
I need a code that verifies that the user has filled all the fields, but in the list box I can not. I tried Listbox.SelectedItems (), ListBox.StringItems and nothing worked. I've already given a DBG_Methods to see which method to use, but none seems to work. Have any of you ever encountered this situation?
Thankful.
OpenOffice: 5.4.2.2
Ubuntu 14.04
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Check ListBox is Selected

Post by Villeroy »

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Tiago
Posts: 2
Joined: Sun Dec 17, 2017 4:57 pm
Location: Brazil

Re: Check ListBox is Selected

Post by Tiago »

thank you so much
I'm passing Ubound to check if the ListBox has been selected. When it returns -1 the application returns an alert message
OpenOffice: 5.4.2.2
Ubuntu 14.04
Post Reply