Check ListBox is Selected

Creating and using forms

Check ListBox is Selected

Postby Tiago » Mon Dec 18, 2017 4:51 am

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
Tiago
 
Posts: 2
Joined: Sun Dec 17, 2017 4:57 pm
Location: Brazil

Re: Check ListBox is Selected

Postby Villeroy » Mon Dec 18, 2017 10:59 am

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04, OpenOffice 4.x & LibreOffice 6.x
User avatar
Villeroy
Volunteer
 
Posts: 26635
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Check ListBox is Selected

Postby Tiago » Mon Dec 18, 2017 11:55 pm

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
Tiago
 
Posts: 2
Joined: Sun Dec 17, 2017 4:57 pm
Location: Brazil


Return to Forms

Who is online

Users browsing this forum: No registered users and 1 guest