Jeremy,
Jeremy French outlines the steps you need to follow. I would add a couple
of ideas expanding on his post if you have multiple listboxes in a form.

The first is simply adopt a custom of putting all the listboxes in a single
object of the parent form. So I might have:

Form.LB.A...

Which means "LB" is an object I use for all the listboxes. "A" is the
object for the first listbox and so on.

Subforms are really helpful in this situation too. You can design a subform
whose only purpose is to display a listbox. This subform can be duplicated
multiple times on the parent form and the subform object itself can be a
collection or object. Now the cool part is the contents of the subform Form
object ARE the Form object of the subform. And these can be linked to the
parent form's Form.

This is particularly convenient for configuring LBs for tools or controls
of various types but they can also be full blown listboxes as well.

On Mon, Oct 29, 2018 at 3:22 AM Jeremy Roussak via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> It’s great to be able to make generic listboxes and set them up entirely
> in code. It’s easy for array-based and selection-based listboxes, but can
> it be done for entity/collection boxes?
>
> In other words, are there LISTBOX SET xx calls to identify the names of
> the variables unique to entity/collection boxes: the collection/entity
> source; the current item; the current item position; and the selected
> items?
>
> I can’t find them, but it’s perfectly possible that, as so often, I’ve
> missed something.
>
> Jeremy
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **********************************************************************



-- 
Kirk Brooks
San Francisco, CA
=======================

*We go vote - they go home*
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to