Ask Your Question

How do I make a multi selection on a form in Base? [closed]

asked 2013-07-30 09:07:55 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I have been through as many manuals as I can find and none say the steps to making a multi section in a listbox. It seems straight forward until I actually saved my work and test it, and multi selector still doesn't work. I've gotten it to work a few times but not for long as it always reverts to single selection. What are the trouble shoots?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2015-11-04 15:56:00.367191

1 Answer

Sort by » oldest newest most voted

answered 2015-09-11 15:49:52 +0200

g2gsoon gravatar image

Leave the listbox empty at design stage and include code similar to as follows:

Dim oDlg As Object


oDlg = CreateUnoDialog(DialogLibraries.Standard.MyFormName)

Dim oCtl As Object

oCtl = oDlg.getControl("ListBox1")




To find the item selected use code similar to:

Dim sPmt As String

oCtl = oDlg.getControl("ListBox1")

sPmt = oCtl.getSelectedItem()

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-07-30 09:07:55 +0200

Seen: 671 times

Last updated: Jul 30 '13